Commit 710556d9 authored by 13841799530's avatar 13841799530

有token 重定向页面

parent b34a7566
......@@ -13,7 +13,8 @@ router.beforeEach(async(to, from, next) => {
console.log(hasToken)
if (hasToken) {
if (to.path === '/login2') {
next({ path: '/MessageCenter' })
alert(123)
next({ path: '/message-center' })
} else {
next()
}
......
......@@ -73,7 +73,7 @@ export default {
background:'green',
duration: 1000
})
this.$router.push('/MessageCenter')
this.$router.push('/message-center')
setToken(Response.data)
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment