提交 fb063a50 authored 作者: pengxiaohui's avatar pengxiaohui

update

上级 5082cc48
......@@ -7,9 +7,6 @@ export default class BeforeEnter {
async update(to, from, next) {
const isLogin = store.state.user.isLogin || (await store.dispatch('checkLogin'))
console.log(to)
console.log(from)
console.log(`${webConf.others.loginUrl}?rd=${encodeURIComponent(window.location.href)}`)
if (!isLogin) {
window.location.href = `${webConf.others.loginUrl}?rd=${encodeURIComponent(window.location.href)}`
next()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论