From eb02da8e1e37fd63fa68443cfd7bf16cb9345e7a Mon Sep 17 00:00:00 2001 From: Shiina Kin Date: Mon, 11 Nov 2024 22:33:02 +0800 Subject: [PATCH] feat(ui): add user field routes - introduce new route for "/user" with child routes - add components for overview, image upload, images, albums, and profile - enable redirection to "overview" as default child route --- ui/src/router/index.ts | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/ui/src/router/index.ts b/ui/src/router/index.ts index 1248bbdf..6267f0cf 100644 --- a/ui/src/router/index.ts +++ b/ui/src/router/index.ts @@ -24,6 +24,39 @@ const router = createRouter({ } ] }, + { + path: "/user", + name: "userField", + component: () => import("@/views/structure/userField/UserField.vue"), + redirect: { name: "overview" }, + children: [ + { + path: "overview", + name: "overview", + component: () => import("@/views/structure/userField/common/OverviewView.vue") + }, + { + path: "upload", + name: "imageUpload", + component: () => import("@/views/structure/userField/image/ImageUploadView.vue") + }, + { + path: "images", + name: "myImage", + component: () => import("@/views/structure/userField/image/MyImageView.vue") + }, + { + path: "albums", + name: "myAlbum", + component: () => import("@/views/structure/userField/album/MyAlbumView.vue") + }, + { + path: "profile", + name: "profile", + component: () => import("@/views/structure/userField/user/UserProfileView.vue") + } + ] + }, { path: "/:pathMatch(.*)", name: "notFound",