feat:新增签到layout
This commit is contained in:
@@ -2,6 +2,7 @@ import { createRouter, createWebHistory } from "vue-router";
|
||||
import Layout from "../layout/Index.vue";
|
||||
import NotFound from "../views/error/404.vue";
|
||||
import LoginLayout from "../layout/LoginLayout.vue";
|
||||
import SignInLayout from "../layout/signIn/index.vue";
|
||||
const router = createRouter({
|
||||
history: createWebHistory(import.meta.env.BASE_URL),
|
||||
scrollBehavior(to, from, savedPosition) {
|
||||
@@ -98,6 +99,22 @@ const router = createRouter({
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: "/sign",
|
||||
name: "signInLayout",
|
||||
component: SignInLayout,
|
||||
redirect: "/sign/everyday",
|
||||
children: [
|
||||
{
|
||||
name: "everyday",
|
||||
path: "everyday",
|
||||
component: () => import("../views/signIn/index.vue"),
|
||||
meta: {
|
||||
title: "每日签到",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{ path: "/:pathMatch(.*)*", name: "NotFound", component: NotFound },
|
||||
],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user