fix: 增加调试日志
parent
e53bd35de5
commit
ebdadd285c
|
@ -17,6 +17,8 @@ router.beforeEach(async (to, from, next) => {
|
||||||
if (isEmpty(history.state.current)) {
|
if (isEmpty(history.state.current)) {
|
||||||
assign(history.state, { current: from.fullPath })
|
assign(history.state, { current: from.fullPath })
|
||||||
}
|
}
|
||||||
|
console.log(to)
|
||||||
|
|
||||||
if (getToken()) {
|
if (getToken()) {
|
||||||
// 判断用户是否处于登录状态
|
// 判断用户是否处于登录状态
|
||||||
if (to.path === '/login') {
|
if (to.path === '/login') {
|
||||||
|
|
Loading…
Reference in New Issue