一刷新就跳首页main.jsconst router = new VueRouter({
history: false,
hashbang: true,
routes
})router.jsapp.vue export default { name: 'app', components: {
}, created: function () { this.$router.push('/login')
}
}不管在哪页刷新,就一直跳转login页,是否我设置初始页面的方式有问题?
添加回答
举报
0/150
提交
取消