Browse Source

验证码

lrf402788946 5 years ago
parent
commit
481c88d522
2 changed files with 11 additions and 11 deletions
  1. 7 7
      src/store.js
  2. 4 4
      src/views/registerEnt/register.vue

+ 7 - 7
src/store.js

@@ -40,14 +40,14 @@ const api = {
   verify: '/adminapi/verify/verify',
   checkVerify: '/adminapi/verify/check_verify',
   //短信验证码
-  message: '/adminapi/verify/sendmessage',
-  checkMessage: '/adminapi/verify/check_message',
+  message: '/api/verify/sendmessage',
+  checkMessage: '/api/verify/check_message',
   // 关注数
-  stucorp: `/adminapi/studentcorp`,
-  stucorpsearch: `/adminapi/studentcorp`,
-  stucorplist: `/adminapi/studentcorp`,
-  stucorpupdate: `/adminapi/studentcorp`,
-  stucorpdelete: `/adminapi$/studentcorp/{id}`,
+  stucorp: `/api/jobs/studentcorp`,
+  stucorpsearch: `/api/jobs/studentcorp`,
+  stucorplist: `/api/jobs/studentcorp`,
+  stucorpupdate: `/api/jobs/studentcorp`,
+  stucorpdelete: `/api/jobs/studentcorp/{id}`,
   //待办事项
   notice: `/api/msg/message`, //${process.env.NODE_ENV === 'development' ? '/napi' : '/api'}
   noticeDelete: `/api/msg/message/{id}`,

+ 4 - 4
src/views/registerEnt/register.vue

@@ -74,10 +74,10 @@ export default {
       this.$set(this, `sch`, sch);
       this.$set(this, `verifyForm`, verifyForm);
       this.$set(this, `form`, data);
-      // if (!(await this.checkVerify())) {
-      //   this.$set(this, `active`, 1);
-      //   return;
-      // }
+      if (!(await this.checkVerify())) {
+        this.$set(this, `active`, 1);
+        return;
+      }
       if (this.active++ > 2) this.active = 0;
     },
     async checkVerify() {