responsive name

This commit is contained in:
Cindy Chang
2024-08-29 14:41:41 +08:00
parent 1883818b8b
commit 3a44b74bbc
3 changed files with 8 additions and 20 deletions

View File

@@ -59,9 +59,7 @@ export default {
await loginStore.getUserData();
loginUserData.value = loginStore.userData;
await acctMgmtStore.getUserDetail(loginUserData.value.username);
if(currentViewingUserDetail.value.roles.find(role => role.code === 'admin')) {
isAdmin.value = true;
}
isAdmin.value = acctMgmtStore.currentViewingUser.is_admin;
};
const onBtnMyAccountClick = async() => {