Vue重定向的用法,在router中匹配规则 index.html
这样就会显示/index.htmlexport default new Router({routes: [{path:'/',redirect:{name:'index123'}},{path: '/index.html',name: 'index123',...
·
这样就会显示/index.html
export default new Router({
routes: [
{
path:'/',
redirect:{
name:'index123'
}
},
{
path: '/index.html',
name: 'index123',
component: HelloWorld
},
{
path: '/newDetail',
name: 'newDetail',
component: na
},更多推荐



所有评论(0)