diff --git a/src/store/modules/app.ts b/src/store/modules/app.ts index fe11126c..81405212 100644 --- a/src/store/modules/app.ts +++ b/src/store/modules/app.ts @@ -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;