소스 검색

fix: 增加短信接口异常提示

周玉环 4 일 전
부모
커밋
e111119440
1개의 변경된 파일7개의 추가작업 그리고 1개의 파일을 삭제
  1. 7 1
      xinkeaboard-promotion-portal/src/components/LoginDialog.vue

+ 7 - 1
xinkeaboard-promotion-portal/src/components/LoginDialog.vue

@@ -172,6 +172,12 @@ const getVerifyCode = () => {
       startCountdown(60, (time) => (countDownNumer.value = time));
       isReacquireCode.value = true;
     })
+    .catch(err => {
+      showMessage({
+        type: 'error',
+        message: err
+      })
+    })
     .finally(() => {
       getVerifyCodeLoading.value = false;
     });
@@ -181,7 +187,7 @@ const getVerifyCode = () => {
 const verifySuccess = () => {
   modalVisible.value = false;
   showMessage({
-    message: '正在发送验证码',
+    message: '验证通过, 即将发送验证码',
     type: 'success'
   });
   getVerifyCode();