change account-admin url

This commit is contained in:
Cindy Chang
2024-07-04 15:21:07 +08:00
parent 19f7ae5f38
commit ca4d6d0127
9 changed files with 16 additions and 17 deletions

View File

@@ -6,11 +6,10 @@
</figure>
<div class="flex justify-between items-center relative"
v-show="showMember">
<!-- TODO: 換成人頭按鈕 帳號管理功能 -->
<button id="logout_btn" class="btn btn-sm btn-neutral mr-2" @click.prevent="logOutButton">
<!-- 不再使用本顆登出按鈕 <button id="logout_btn" class="btn btn-sm btn-neutral mr-2" @click.prevent="logOutButton">
Logout
</button>
<img v-show="false" id="acct_mgmt_button" src="@/assets/icon-head-black.svg" width="32" height="32"
</button> -->
<img v-show="true" id="acct_mgmt_button" src="@/assets/icon-head-black.svg" width="32" height="32"
class="cursor-pointer" @click="onAcctHeadClick"
/>
</div>

View File

@@ -53,7 +53,7 @@ const routes = [
name: "Account Management",
children: [
{
path: "/account/account-admin",
path: "/account-admin",
name: "AcctAdmin",
component: AccountAdmin,
},

View File

@@ -253,7 +253,7 @@ export default defineComponent({
await toast.success(i18next.t("AcctMgmt.MsgAccountAdded"));
await modalStore.closeModal();
acctMgmtStore.setShouldUpdateList(true);
await router.push('/account/account-admin');
await router.push('/account-admin');
break;
case MODAL_ACCT_EDIT:
// 要注意的是舊的username跟新的username可以是不同的

View File

@@ -47,7 +47,7 @@ export default defineComponent({
toast.success(i18next.t("AcctMgmt.MsgAccountDeleteSuccess"));
modalStore.closeModal();
acctMgmtStore.setShouldUpdateList(true);
router.push("/account/account-admin");
router.push("/account-admin");
}
}