fix: 增加调试日志

aiops_dev
时启龙 2025-08-08 11:25:24 +08:00
parent e53bd35de5
commit ebdadd285c
1 changed files with 2 additions and 0 deletions

View File

@ -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') {