refactor: 优化账号管理

This commit is contained in:
2024-04-26 22:44:52 +08:00
parent bdafe43179
commit 25aa7cc17e
23 changed files with 234 additions and 310 deletions

View File

@@ -50,9 +50,12 @@
<icon-down />
</a-row>
<template #content>
<a-doption @click="toUser">
<a-doption @click="router.push('/setting/profile')">
<span>账号管理</span>
</a-doption>
<a-doption @click="router.push('/setting/security')">
<span>安全设置</span>
</a-doption>
<a-divider :margin="0" />
<a-doption @click="logout">
<span>退出登录</span>
@@ -80,11 +83,6 @@ const router = useRouter()
const userStore = useUserStore()
const SettingDrawerRef = ref<InstanceType<typeof SettingDrawer>>()
// 跳转基本信息
const toUser = () => {
router.push('/setting/profile')
}
// 退出登录
const logout = () => {
Modal.warning({