feat: 系统免登录参数路由跳转

This commit is contained in:
TsMask
2024-11-25 11:59:46 +08:00
parent 7d69d3c21d
commit 1b28260680
2 changed files with 10 additions and 1 deletions

View File

@@ -20,6 +20,8 @@ type AppStore = {
buildTime: string;
/**系统引导使用 */
bootloader: boolean;
// 用户登录认证
loginAuth: boolean;
// 序列号
serialNum: string;
/**应用版权声明 */
@@ -52,6 +54,7 @@ const useAppStore = defineStore('app', {
version: `-`,
buildTime: `-`,
bootloader: false,
loginAuth: false,
serialNum: `-`,
copyright: `Copyright ©2023 For ${import.meta.env.VITE_APP_NAME}`,
logoType: 'icon',
@@ -85,6 +88,7 @@ const useAppStore = defineStore('app', {
if (this.bootloader) {
removeToken();
}
this.loginAuth = res.data.loginAuth === 'true';
this.serialNum = res.data.serialNum;
this.appName = res.data.title;
this.copyright = res.data.copyright;