sonar qube

This commit is contained in:
Cindy Chang
2024-07-22 13:58:23 +08:00
parent adcdb2bdc0
commit 3c81356fa2
5 changed files with 4 additions and 16 deletions

View File

@@ -61,7 +61,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: {} };
this.currentViewingUser = userFind || { username: '', detail: {} };
},
/**
* We have this method because we want to handle create new modal case.