fix: No error message prompted after QR code failure
--bug=1052150 --user=王孝刚 【系统设置】钉钉二维码失效后,点击刷新,使用非当前组织的用户扫码登录,没有弹错误提示 https://www.tapd.cn/57709429/s/1653901
This commit is contained in:
parent
c1efc721e2
commit
f4f47a8f33
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user