feat: 系统引导使用接口变更

This commit is contained in:
TsMask
2024-05-07 16:27:45 +08:00
parent 60a26dd015
commit b76fed7dcf
5 changed files with 30 additions and 20 deletions

View File

@@ -18,8 +18,8 @@ type AppStore = {
/**服务版本 */
version: string;
buildTime: string;
/**系统首次使用 */
sysGuide: boolean;
/**系统引导使用 */
bootloader: boolean;
// 序列号
serialNum: string;
/**应用版权声明 */
@@ -51,7 +51,7 @@ const useAppStore = defineStore('app', {
version: `-`,
buildTime: `-`,
sysGuide: false,
bootloader: false,
serialNum: `-`,
copyright: `Copyright ©2023 For ${import.meta.env.VITE_APP_NAME}`,
logoType: 'icon',
@@ -80,9 +80,9 @@ const useAppStore = defineStore('app', {
if (res.code === RESULT_CODE_SUCCESS && res.data) {
this.version = res.data.version;
this.buildTime = res.data.buildTime;
this.sysGuide = res.data.sysGuide === 'true';
this.bootloader = res.data.bootloader === 'true';
// 引导时
if (this.sysGuide) {
if (this.bootloader) {
removeToken();
}
this.serialNum = res.data.serialNum;