Explorar o código

fix 修复 注册页面 验证码开关不生效问题

疯狂的狮子li %!s(int64=3) %!d(string=hai) anos
pai
achega
4e0793221e
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      ruoyi-ui/src/views/register.vue

+ 3 - 3
ruoyi-ui/src/views/register.vue

@@ -114,10 +114,10 @@ export default {
   methods: {
     getCode() {
       getCodeImg().then(res => {
-        this.captchaEnabled = res.captchaEnabled === undefined ? true : res.captchaEnabled;
+        this.captchaEnabled = res.data.captchaEnabled === undefined ? true : res.data.captchaEnabled;
         if (this.captchaEnabled) {
-          this.codeUrl = "data:image/gif;base64," + res.img;
-          this.registerForm.uuid = res.uuid;
+          this.codeUrl = "data:image/gif;base64," + res.data.img;
+          this.registerForm.uuid = res.data.uuid;
         }
       });
     },