Jelajahi Sumber

换手机号,则重新验证手机号

Michael Wang 6 tahun lalu
induk
melakukan
c23a027351
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      src/features/OnlineExam/PhoneVerifyForDD.vue

+ 2 - 2
src/features/OnlineExam/PhoneVerifyForDD.vue

@@ -34,7 +34,7 @@ export default {
       ["cugr.ecs.qmth.com.cn", "ecs-dev.qmth.com.cn"].includes(
         localStorage.getItem("domain")
       ) &&
-      !localStorage.getItem("phoneVerified")
+      !localStorage.getItem("phoneVerified:" + this.user.phoneNumber)
     ) {
       this.phoneModal = true;
     }
@@ -59,7 +59,7 @@ export default {
       );
       if (res.data.success) {
         this.phoneModal = false;
-        localStorage.setItem("phoneVerified", "true");
+        localStorage.setItem("phoneVerified:" + this.user.phoneNumber, "true");
       } else {
         this.$Message.error(res.data.returnMsg);
       }