Browse Source

修改验证码图片BUG

wyling 3 năm trước cách đây
mục cha
commit
66b76307b0
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/views/login.vue

+ 2 - 2
src/views/login.vue

@@ -99,8 +99,8 @@ export default {
   methods: {
     getCode() {
       getCodeImg().then(res => {
-        this.codeUrl = "data:image/gif;base64," + res.img;
-        this.loginForm.uuid = res.uuid;
+        this.codeUrl = "data:image/gif;base64," + res.data.img;
+        this.loginForm.uuid = res.data.uuid;
       });
     },
     getCookie() {