fix: No error message prompted after QR code failure
Some checks are pending
sync2gitee / repo-sync (push) Waiting to run
Typos Check / Spell Check with Typos (push) Waiting to run

--bug=1052150 --user=王孝刚 【系统设置】钉钉二维码失效后,点击刷新,使用非当前组织的用户扫码登录,没有弹错误提示 https://www.tapd.cn/57709429/s/1653901
This commit is contained in:
wxg0103 2025-02-12 17:47:27 +08:00 committed by wxg
parent c1efc721e2
commit f4f47a8f33

View File

@ -80,6 +80,7 @@ const errorShown = ref(false)
const initActive = async () => {
try {
await load(true)
errorShown.value = false
if (!isConfigReady.value) {
return
}
@ -116,7 +117,7 @@ const initActive = async () => {
(errorMsg: string) => {
if (!errorShown.value) {
MsgError(errorMsg)
errorShown.value = true // true
errorShown.value = true
}
}
)