Browse Source

修改验证码图片BUG

wyling 3 years ago
parent
commit
66b76307b0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/login.vue

+ 2 - 2
src/views/login.vue

@@ -99,8 +99,8 @@ export default {
   methods: {
   methods: {
     getCode() {
     getCode() {
       getCodeImg().then(res => {
       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() {
     getCookie() {