提交 686b1554 authored 作者: matian's avatar matian

updates

上级 49cf4561
......@@ -39,6 +39,9 @@ Vue.prototype.VueEvent = new Vue()
const before = createBefore()
/* 导航守卫 */
router.beforeEach(async (to, from, next) => {
if (to.query.channel_num) {
window.localStorage.setItem('channel_num', to.query.channel_num)
}
await store.dispatch('generateRoutes')
before.update(to, from, next)
})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论