http://router.vuejs.org/zh-cn/api/before-each.html
用vuex之类的共享登录状态,完了用这个钩子
未登录就redrict
router.beforeEach 不符合的条件的全丢到404
http://router.vuejs.org/zh-cn/api/before-each.html
用vuex之类的共享登录状态,完了用这个钩子
未登录就redrict
router.beforeEach 不符合的条件的全丢到404
本文标题:登录状态
本文链接:https://www.haomeiwen.com/subject/ocwvjttx.html
网友评论