diff --git a/console/src/modules/system/users/UserDetail.vue b/console/src/modules/system/users/UserDetail.vue index 73b4b62b46..33915d7df3 100644 --- a/console/src/modules/system/users/UserDetail.vue +++ b/console/src/modules/system/users/UserDetail.vue @@ -1,168 +1,199 @@ diff --git a/console/src/modules/system/users/components/UserAvatar.vue b/console/src/modules/system/users/components/UserAvatar.vue new file mode 100644 index 0000000000..137e737a24 --- /dev/null +++ b/console/src/modules/system/users/components/UserAvatar.vue @@ -0,0 +1,186 @@ + + + diff --git a/console/src/modules/system/users/layouts/UserProfileLayout.vue b/console/src/modules/system/users/layouts/UserProfileLayout.vue deleted file mode 100644 index eaeaf367cb..0000000000 --- a/console/src/modules/system/users/layouts/UserProfileLayout.vue +++ /dev/null @@ -1,355 +0,0 @@ - - diff --git a/console/src/modules/system/users/module.ts b/console/src/modules/system/users/module.ts index f7f60e94d7..d437af010b 100644 --- a/console/src/modules/system/users/module.ts +++ b/console/src/modules/system/users/module.ts @@ -1,11 +1,9 @@ import { definePlugin } from "@halo-dev/console-shared"; import BasicLayout from "@/layouts/BasicLayout.vue"; import BlankLayout from "@/layouts/BlankLayout.vue"; -import UserProfileLayout from "./layouts/UserProfileLayout.vue"; import UserStatsWidget from "./widgets/UserStatsWidget.vue"; import UserList from "./UserList.vue"; import UserDetail from "./UserDetail.vue"; -import PersonalAccessTokens from "./PersonalAccessTokens.vue"; import Login from "./Login.vue"; import { IconUserSettings } from "@halo-dev/components"; import { markRaw } from "vue"; @@ -61,25 +59,17 @@ export default definePlugin({ }, { path: ":name", - component: UserProfileLayout, + component: BasicLayout, name: "User", children: [ { - path: "detail", + path: "", name: "UserDetail", component: UserDetail, meta: { title: "core.user.detail.title", }, }, - { - path: "tokens", - name: "PersonalAccessTokens", - component: PersonalAccessTokens, - meta: { - title: "个人令牌", - }, - }, ], }, ], diff --git a/console/src/modules/system/users/tabs/Detail.vue b/console/src/modules/system/users/tabs/Detail.vue new file mode 100644 index 0000000000..73b4b62b46 --- /dev/null +++ b/console/src/modules/system/users/tabs/Detail.vue @@ -0,0 +1,168 @@ + + diff --git a/console/src/modules/system/users/PersonalAccessTokens.vue b/console/src/modules/system/users/tabs/PersonalAccessTokens.vue similarity index 93% rename from console/src/modules/system/users/PersonalAccessTokens.vue rename to console/src/modules/system/users/tabs/PersonalAccessTokens.vue index 55a3275470..9b9f24624a 100644 --- a/console/src/modules/system/users/PersonalAccessTokens.vue +++ b/console/src/modules/system/users/tabs/PersonalAccessTokens.vue @@ -10,9 +10,9 @@ import { ref } from "vue"; import { apiClient } from "@/utils/api-client"; import type { PersonalAccessToken } from "@halo-dev/api-client"; import { useQuery } from "@tanstack/vue-query"; -import PersonalAccessTokenCreationModal from "./components/PersonalAccessTokenCreationModal.vue"; +import PersonalAccessTokenCreationModal from "../components/PersonalAccessTokenCreationModal.vue"; import { nextTick } from "vue"; -import PersonalAccessTokenListItem from "./components/PersonalAccessTokenListItem.vue"; +import PersonalAccessTokenListItem from "../components/PersonalAccessTokenListItem.vue"; const { data: pats,