fix: 免登录认证参数默认值

This commit is contained in:
TsMask
2024-12-06 17:36:36 +08:00
parent a0886abd38
commit b1a699252b

View File

@@ -54,7 +54,7 @@ const useAppStore = defineStore('app', {
version: `-`, version: `-`,
buildTime: `-`, buildTime: `-`,
bootloader: false, bootloader: false,
loginAuth: false, loginAuth: true,
serialNum: `-`, serialNum: `-`,
copyright: `Copyright ©2023 For ${import.meta.env.VITE_APP_NAME}`, copyright: `Copyright ©2023 For ${import.meta.env.VITE_APP_NAME}`,
logoType: 'icon', logoType: 'icon',
@@ -88,7 +88,7 @@ const useAppStore = defineStore('app', {
if (this.bootloader) { if (this.bootloader) {
removeToken(); removeToken();
} }
this.loginAuth = res.data.loginAuth === 'true'; this.loginAuth = res.data.loginAuth !== 'false' ;
this.serialNum = res.data.serialNum; this.serialNum = res.data.serialNum;
this.appName = res.data.title; this.appName = res.data.title;
this.copyright = res.data.copyright; this.copyright = res.data.copyright;