Browse Source

扫码页面图形验证码输入错误,弹窗消失太快 期望:2s消失

liushengqiang 1 year ago
parent
commit
921d5d173d
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/components/m-img-code/index.tsx

+ 3 - 1
src/components/m-img-code/index.tsx

@@ -89,7 +89,9 @@ export default defineComponent({
         this.$emit('sendCode');
       } catch {
         this.code = '';
-        this.updateIdentifyingCode();
+        setTimeout(() => {
+          this.updateIdentifyingCode();
+        }, 500)
       }
     }
   },