fix: #327 add needed await keyword
This commit is contained in:
@@ -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: {} };
|
||||
},
|
||||
/**
|
||||
|
||||
@@ -3,5 +3,10 @@ import { defineStore } from "pinia";
|
||||
export default defineStore('loadingStore', {
|
||||
state: () => ({
|
||||
isLoading: true,
|
||||
})
|
||||
}),
|
||||
actions: {
|
||||
setIsLoading(isLoadingBoolean) {
|
||||
this.isLoading = isLoadingBoolean;
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user