diff --git a/mock/userInfo.ts b/mock/userInfo.ts index c1cc84a9a..ceb571636 100644 --- a/mock/userInfo.ts +++ b/mock/userInfo.ts @@ -10,9 +10,9 @@ export default defineFakeRoute([ data: { avatarUrl: "https://avatars.githubusercontent.com/u/44761321", nickName: "企丸丸", - introduce: "我是幻兽帕鲁里的NO.1", + introduce: "我是幻兽帕鲁里的明星", regionCode: "001002001", - address: "体育路冰鸟密域祭坛地下城", + address: "冰鸟密域祭坛地下城", userName: "admin" } }; diff --git a/src/layout/components/userSettings/index.vue b/src/layout/components/userSettings/index.vue index 303ecf1a9..af6b08be9 100644 --- a/src/layout/components/userSettings/index.vue +++ b/src/layout/components/userSettings/index.vue @@ -1,15 +1,17 @@ diff --git a/src/layout/hooks/useNav.ts b/src/layout/hooks/useNav.ts index e51e40fda..bf84a05d5 100644 --- a/src/layout/hooks/useNav.ts +++ b/src/layout/hooks/useNav.ts @@ -100,7 +100,7 @@ export function useNav() { } function handleOpenUserSettings() { - router.push({ name: "UserInfoManage" }); + router.push({ name: "UserSettings" }); } function toggleSideBar() { diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index afc0abcc8..b0fd83bc8 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -47,20 +47,6 @@ export default [ title: $t("buttons.hsUserSettings"), showLink: false, rank: 103 - }, - children: [ - { - path: "user-info-manage", - name: "UserInfoManage", - component: () => - import("@/layout/components/userSettings/userInfoManage.vue") - }, - { - path: "safe-manage", - name: "SafeManage", - component: () => - import("@/layout/components/userSettings/safeManage.vue") - } - ] + } } ] satisfies Array;