duplicate account check

This commit is contained in:
Cindy Chang
2024-06-25 12:08:53 +08:00
parent 38b268e8c5
commit 6d11849dae
4 changed files with 82 additions and 31 deletions

View File

@@ -125,9 +125,13 @@ export default defineStore('acctMgmtStore', {
try{
const response = await this.$axios.get(apiUserDetail);
this.currentViewingUser.detail = response.data;
if(response.status === 200) {
return true;
}
}
catch(error) {
apiError(error, 'Failed to get user detail.');
return false;
};
},
/**