http://router.vuejs.org/zh-cn/api/before-each.html 用vuex之类的共享登录状态,完了用这个钩子 未登录就redrict router.beforeEach 不符合的条件的全丢到404