This commit is contained in:
Cindy Chang
2024-08-08 16:37:03 +08:00
parent b46a6ab995
commit c37e46cff4
3 changed files with 12 additions and 10 deletions

View File

@@ -60,6 +60,7 @@ 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: {} };
},
/**