fix: No error message prompted after QR code failure

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