代码格式修改

This commit is contained in:
2025-10-18 17:13:04 +08:00
parent b9224ed8bb
commit 81017eb280
837 changed files with 102784 additions and 98409 deletions

View File

@@ -32,20 +32,20 @@ router.beforeEach((to, from, next) => {
next({ ...to, replace: true }) // hack方法 确保addRoutes已完成
})
}).catch(err => {
store.dispatch('LogOut').then(() => {
Message.error(err)
next({ path: '/' })
})
store.dispatch('LogOut').then(() => {
Message.error(err)
next({ path: '/' })
})
})
} else {
next()
}
}
} else {
let ticket = to.query.jwt;
let ticket = to.query.jwt
if(ticket){
setTokenKeySessionStorage(ticket);
//commit('SET_TOKEN', ticket)
setTokenKeySessionStorage(ticket)
//commit('SET_TOKEN', ticket)
}
// 没有token
if (whiteList.indexOf(to.path) !== -1) {
@@ -66,7 +66,7 @@ router.beforeEach((to, from, next) => {
// 开启CAS全部重定向到cas登录页
window.location.href = defaultSettings.casloginUrl
}
NProgress.done();
NProgress.done()
}
}
})