Просмотр исходного кода

updata:泰山验证码发送错误显示报错信息

wks 1 год назад
Родитель
Сommit
b398cbbcc5
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      src/views/Sys/TaiShanAuth.vue

+ 4 - 1
src/views/Sys/TaiShanAuth.vue

@@ -52,7 +52,10 @@ export default {
     smdcode(row) {
       this.agreementId = row.id;
       this.$api.sys.taiShanCode({ agreementId: row.id }).then((res) => {
-          this.codedialogVisible = true;
+        if (res.code != '200') {
+          this.$message.error(res.msg);
+        }
+        this.codedialogVisible = true;
       });
     },
     login() {