feat: 系统首次使用引导标记

This commit is contained in:
TsMask
2024-04-19 19:51:01 +08:00
parent 399bddc635
commit 845084f77f
2 changed files with 36 additions and 26 deletions

View File

@@ -17,6 +17,8 @@ type AppStore = {
/**服务版本 */
version: string;
buildTime: string;
/**系统首次使用 */
sysGuide: boolean;
// 序列号
serialNum: string;
/**应用版权声明 */
@@ -48,6 +50,7 @@ const useAppStore = defineStore('app', {
version: `-`,
buildTime: `-`,
sysGuide: false,
serialNum: `-`,
copyright: `Copyright ©2023 For ${import.meta.env.VITE_APP_NAME}`,
logoType: 'icon',
@@ -80,6 +83,7 @@ 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.serialNum = res.data.serialNum;
this.appName = res.data.title;
this.copyright = res.data.copyright;