fixed: #313 use index [ ] instead of splice function to prevent removal
This commit is contained in:
1 parent
a2703bef6e
commit
74bc22b736
3 files changed
+15
-7
No files matched your search
@@ -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 ? userFind : { username: '', detail: {} };
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user