[update 单点登录] 单点登录

This commit is contained in:
danshihao
2024-07-22 17:01:34 +08:00
parent 7694dfe7bf
commit aa8ddc5750
+1 -3
View File
@@ -37,11 +37,9 @@ router.beforeEach(async (to, from, next) => {
}
} else if (!Vue.ls.get(ACCESS_TOKEN) && to.query.code && to.query.state === 'feishu') {
// 如果没有登录,state是飞书,并且有code,就请求飞书单点登录
store.dispatch('FeiShuLogin', to.query.code).catch((e) => {
await store.dispatch('FeiShuLogin', to.query.code).catch((e) => {
this.$message.warn(e.message)
})
// 必须切断执行
return
} else if (to.query.code) {
// 研发大前台单点登录
const { result, success, message } = await getSSOUserInfo({ code: to.query.code })