fix: #327 add needed await keyword

This commit is contained in:
Cindy Chang
2024-08-09 16:07:08 +08:00
parent 17e51ca98a
commit d8c1e84622
4 changed files with 15 additions and 31 deletions

View File

@@ -62,7 +62,6 @@ export default defineStore('acctMgmtStore', {
*/
setCurrentViewingUser(username: string) {
const userFind: User | undefined = this.allUserAccoutList.find(user => user.username === username);
console.log('userFind', userFind);
this.currentViewingUser = userFind || { username: '', detail: {} };
},
/**

View File

@@ -3,5 +3,10 @@ import { defineStore } from "pinia";
export default defineStore('loadingStore', {
state: () => ({
isLoading: true,
})
}),
actions: {
setIsLoading(isLoadingBoolean) {
this.isLoading = isLoadingBoolean;
}
},
});