vue+router路由跳转不起作用的一项原因
Vue.use(Router)export default new Router({mode:'history',routes: [{ path: '/', component: Login },{ path: '/login', component: Login },{ path: '/register',component: Registe...
·
Vue.use(Router)
export default new Router({
mode:'history',
routes: [
{ path: '/', component: Login },
{ path: '/login', component: Login },
{ path: '/register',component: Register},
{path: '/*', component: NotFound},
]
})
记得要写上 mode:'history', 原因如下
更多推荐
已为社区贡献6条内容
所有评论(0)