|
@@ -31,7 +31,12 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
async mounted() {
|
|
|
- if (["cugr.ecs.qmth.com.cn"].includes(localStorage.getItem("domain"))) {
|
|
|
+ if (
|
|
|
+ ["cugr.ecs.qmth.com.cn", "test.qmth.com.cn"].includes(
|
|
|
+ localStorage.getItem("domain")
|
|
|
+ ) &&
|
|
|
+ !localStorage.getItem("phoneVerified")
|
|
|
+ ) {
|
|
|
this.phoneModal = true;
|
|
|
}
|
|
|
},
|
|
@@ -61,10 +66,7 @@ export default {
|
|
|
);
|
|
|
if (res.data.success) {
|
|
|
this.phoneModal = false;
|
|
|
- localStorage.setItem(
|
|
|
- "phoneVerified:" + this.user.phoneNumber,
|
|
|
- "true"
|
|
|
- );
|
|
|
+ localStorage.setItem("phoneVerified", "true");
|
|
|
} else {
|
|
|
this.$Message.error(res.data.returnMsg);
|
|
|
}
|