feat(detection): 添加当前登录账号检测功能

This commit is contained in:
2977094657
2025-08-19 17:10:32 +08:00
parent ce06384f0a
commit a86e8f762f
6 changed files with 488 additions and 28 deletions

View File

@@ -9,6 +9,9 @@ export const useAppStore = defineStore('app', {
// 最近的检测结果
lastDetectionResult: null,
// 当前登录账号信息
currentAccount: null,
// 全局加载状态
globalLoading: false,
@@ -28,6 +31,11 @@ export const useAppStore = defineStore('app', {
this.lastDetectionResult = result
},
// 设置当前登录账号
setCurrentAccount(account) {
this.currentAccount = account
},
// 设置全局加载状态
setGlobalLoading(loading) {
this.globalLoading = loading