当前位置: 移动技术网 > IT编程>网页制作>CSS > vue+router路由跳转不起作用的一项原因

vue+router路由跳转不起作用的一项原因

2019年04月19日  | 移动技术网IT编程  | 我要评论

专科和本科的区别,恶魔之吻2下载,美神极乐大作战之人形师

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',

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网