Skip to content

Commit 64a1f94

Browse files
committed
fix: change license
1 parent 4b64069 commit 64a1f94

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

plugins/01.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ export default defineNuxtPlugin({
1212
// 获取license
1313
const licenseResponse = await fetch('/license')
1414
const licenseConfig = await licenseResponse.json()
15-
if (licenseConfig !== null) {
16-
remoteConfig.license = licenseConfig
17-
} else {
15+
if(licenseConfig==null || (licenseConfig.name==''&& licenseConfig.expired==0)){
1816
remoteConfig.license = false
17+
}else {
18+
remoteConfig.license = licenseConfig
1919
}
2020

2121
// 合并 public/runtimeConfig 与 remote 配置,remote 的优先

0 commit comments

Comments
 (0)