User personalize

This commit is contained in:
2024-03-16 00:51:34 +08:00
parent f0e24f634b
commit 6b32f47758
6 changed files with 250 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
import { createRouter, createWebHistory } from "vue-router"
import { useUserinfo } from "@/stores/userinfo"
import MasterLayout from "@/layouts/master.vue"
import UserCenterLayout from "@/layouts/user-center.vue"
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
@@ -8,7 +9,16 @@ const router = createRouter({
{
path: "/",
component: MasterLayout,
children: [{ path: "/", name: "dashboard", component: () => import("@/views/dashboard.vue") }],
children: [
{
path: "/",
component: UserCenterLayout,
children: [
{ path: "/", name: "dashboard", component: () => import("@/views/dashboard.vue") },
{ path: "/me/personalize", name: "personalize", component: () => import("@/views/personalize.vue") },
],
},
],
},
{
path: "/auth",