This commit is contained in:
theluyuan 2021-07-07 17:21:50 +08:00
parent 4af8011e43
commit 26f3b38c7e

View File

@ -27,6 +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: "*",component: bar},
{ path: '/foo', redirect:{ name: 'bar',query:{name:111,age:111} } , component: foo }, { path: '/foo', redirect:{ name: 'bar',query:{name:111,age:111} } , component: foo },
{ path: '/bar', component: bar }, { path: '/bar', component: bar },
{ {
@ -38,7 +39,9 @@ const routes = [
}, },
{ path: 'bar',name:"bar", component: bar }, { path: 'bar',name:"bar", component: bar },
] ]
} },
] ]
// router 路由对象 // router 路由对象