mirror of
https://github.com/LifeArchiveProject/WeChatDataAnalysis.git
synced 2026-02-18 22:00:49 +08:00
feat(detection): 添加当前登录账号检测功能
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user