提交 e3b1db92 authored 作者: lidongxu's avatar lidongxu

fix(login): 正式环境_网页授权飞书登录失效

修复完成
上级 a50fd001
...@@ -145,11 +145,12 @@ async function checkAutoLogin() { ...@@ -145,11 +145,12 @@ async function checkAutoLogin() {
const state = getQueryString('state') const state = getQueryString('state')
const code = getQueryString('code') const code = getQueryString('code')
console.log(state, code)
if (state) { if (state) {
// 有 state 代表网页回调-自动登录 // 有 state 代表网页回调-自动登录
autoLoginLoading.value = true autoLoginLoading.value = true
state === 'fs' && loginByType('fs', { code }) state.includes('fs') && loginByType('fs', { code })
state === 'STATE' && loginByType('qc', { code }) state.includes('STATE') && loginByType('qc', { code })
} }
} }
checkAutoLogin() checkAutoLogin()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论