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.

View File

@@ -25,13 +25,6 @@ export default defineStore('conformanceInputStore', {
getters: {
},
actions: {
/** UNUSED
* Set input activity radio data
* @param {object} actRadioData
*/
setActivityRadioStartEndData(actRadioData) {
this.activityRadioData = actRadioData;
},
/**
* Sets the activity radio global state for either the start ('From') or end ('To') of a task.
* We arrange in this way because backend needs us to communicate in this way.

View File

@@ -26,7 +26,6 @@ export default defineStore('pageAdminStore', {
this.activePageComputedByRoute = mapPageNameToCapitalUnifiedName(
routeMatched[routeMatched.length - 1].name);
}
// console.log('this.activePageComputedByRoute', this.activePageComputedByRoute);
},
/**
* Set Active Page; the page which the user is currently visiting