修改路由

This commit is contained in:
2020-09-25 16:27:33 +08:00
parent 011fa5337c
commit 10a0917cdc
4 changed files with 59 additions and 2 deletions

View File

@@ -1,10 +1,21 @@
import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
const routes: Array<RouteRecordRaw> = [
{
path:"/mine",
name:"Mine",
component: () => import("../layout/mine.vue"),
children: [
{
path:"Archives",
component: () => import("../views/mine/Archives.vue")
}
]
},
{
path: '/',
name: 'Home',
component: () => import(/* webpackChunkName: "about" */ '../components/Nav.vue')
component: () => import(/* webpackChunkName: "about" */ '../components/NavTop.vue')
},
{
path: '/about',