There was an error while loading. Please reload this page.
1 parent 4b64069 commit 64a1f94Copy full SHA for 64a1f94
1 file changed
plugins/01.config.ts
@@ -12,10 +12,10 @@ export default defineNuxtPlugin({
12
// 获取license
13
const licenseResponse = await fetch('/license')
14
const licenseConfig = await licenseResponse.json()
15
- if (licenseConfig !== null) {
16
- remoteConfig.license = licenseConfig
17
- } else {
+ if(licenseConfig==null || (licenseConfig.name==''&& licenseConfig.expired==0)){
18
remoteConfig.license = false
+ }else {
+ remoteConfig.license = licenseConfig
19
}
20
21
// 合并 public/runtimeConfig 与 remote 配置,remote 的优先
0 commit comments