feat: 系统引导使用接口变更
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user