修改路由
This commit is contained in:
parent
4721d579aa
commit
58bb55db34
|
@ -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
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue