重定向
This commit is contained in:
parent
29736567e8
commit
4af8011e43
@ -27,7 +27,7 @@ import index from "./pages/index.vue"
|
|||||||
// www.baidu.com 域名 服务器
|
// www.baidu.com 域名 服务器
|
||||||
// /adsaw/asdxc url 网址路径
|
// /adsaw/asdxc url 网址路径
|
||||||
const routes = [
|
const routes = [
|
||||||
{ path: '/foo', component: foo },
|
{ path: '/foo', redirect:{ name: 'bar',query:{name:111,age:111} } , component: foo },
|
||||||
{ path: '/bar', component: bar },
|
{ path: '/bar', component: bar },
|
||||||
{
|
{
|
||||||
path: '/index', component: index, children: [
|
path: '/index', component: index, children: [
|
||||||
@ -36,7 +36,7 @@ const routes = [
|
|||||||
path: 'aaa', component: bar
|
path: 'aaa', component: bar
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
{ path: 'bar', component: bar },
|
{ path: 'bar',name:"bar", component: bar },
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user