feat:新增签到layout

This commit is contained in:
Xwen
2024-01-11 23:51:09 +08:00
parent 4a0a0e0bb6
commit ae5f63b1ed
5 changed files with 182 additions and 1 deletions

View File

@@ -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 },
],
});