一刷新就跳首页
main.js
const router = new VueRouter({ history: false, hashbang: true, routes })
router.js
app.vue
export default { name: 'app', components: { }, created: function () { this.$router.push('/login') } }
不管在哪页刷新,就一直跳转login页,是否我设置初始页面的方式有问题?
慕神8447489
相关分类