Skip to content

Commit 30e808f

Browse files
committed
fix: No error message prompted after QR code failure
--bug=1052150 --user=王孝刚 【系统设置】钉钉二维码失效后,点击刷新,使用非当前组织的用户扫码登录,没有弹错误提示 https://www.tapd.cn/57709429/s/1653901
1 parent c1efc72 commit 30e808f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/src/views/login/components/dingtalkQrCode.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ const errorShown = ref(false)
8080
const initActive = async () => {
8181
try {
8282
await load(true)
83+
errorShown.value = false
8384
if (!isConfigReady.value) {
8485
return
8586
}
@@ -116,7 +117,7 @@ const initActive = async () => {
116117
(errorMsg: string) => {
117118
if (!errorShown.value) {
118119
MsgError(errorMsg)
119-
errorShown.value = true // 设置标志位为 true,表示错误已经显示过
120+
errorShown.value = true
120121
}
121122
}
122123
)

0 commit comments

Comments
 (0)