修改路由

This commit is contained in:
Cool 2023-11-14 19:15:06 +08:00
parent 4721d579aa
commit 58bb55db34
1 changed files with 8 additions and 6 deletions

View File

@ -10,21 +10,23 @@ const routes = [
path: "/", path: "/",
name: "LayoutView", name: "LayoutView",
component: LayoutView, component: LayoutView,
//重定向到home
redirect: "/home",
children: [ children: [
{ {
path: 'home', path: 'home',
name: 'home', name: 'home',
component: HomeView, component: HomeView,
meta: { meta: {
isLogin: false isLogin: true
}, },
children: [ children: [
{ {
path: "/params", path: "/index",
name: "paramsview", name: "Index",
component: () => import("../views/main/ParamsView.vue"), component: () => import("../views/main/Index.vue"),
meta: { meta: {
isLogin: false isLogin: true
} }
}, },
{ {
@ -32,7 +34,7 @@ const routes = [
name: "TableDemo", name: "TableDemo",
component: TableDemo, component: TableDemo,
meta: { meta: {
isLogin: false isLogin: true
} }
}, },
] ]