重定向

This commit is contained in:
theluyuan 2021-07-07 17:15:13 +08:00
parent 29736567e8
commit 4af8011e43

View File

@ -27,7 +27,7 @@ import index from "./pages/index.vue"
// www.baidu.com 域名 服务器
// /adsaw/asdxc url 网址路径
const routes = [
{ path: '/foo', component: foo },
{ path: '/foo', redirect:{ name: 'bar',query:{name:111,age:111} } , component: foo },
{ path: '/bar', component: bar },
{
path: '/index', component: index, children: [
@ -36,7 +36,7 @@ const routes = [
path: 'aaa', component: bar
}]
},
{ path: 'bar', component: bar },
{ path: 'bar',name:"bar", component: bar },
]
}
]