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