Ver Fonte

注册发送验证码修改

gcj há 3 anos atrás
pai
commit
4b3eefe12d
2 ficheiros alterados com 2 adições e 4 exclusões
  1. 1 3
      src/components/login/registration.vue
  2. 1 1
      vue.config.js

+ 1 - 3
src/components/login/registration.vue

@@ -469,15 +469,13 @@ export default {
       let this_ = this;
       let timer;
       if (this_.ruleForm.email) {
-        this_.VerificationCodeShow = true;
-
         let MethodName = "user_manager-SendVerificationCode";
         let data = {
           verification_type: this.register == "邮箱" ? "EMAIL" : "SMS",
           phone_or_email: this_.ruleForm.email,
         };
         getLogin(MethodName, data).then((res) => {
-          console.log(res);
+          this_.VerificationCodeShow = true;
           timer = setInterval(() => {
             this_.time--;
             if (this_.time == 0) {

+ 1 - 1
vue.config.js

@@ -40,7 +40,7 @@ module.exports = {
       // change xxx-api/login => mock/login
       // detail: https://cli.vuejs.org/config/#devserver-proxy
       [process.env.VUE_APP_BASE_API]: {
-        target: `http://gcls.utschool.cn`,
+        target: `https://gcls.utschool.cn`,
         changeOrigin: true,
         pathRewrite: {
           ['^' + process.env.VUE_APP_BASE_API]: ''