瀏覽代碼

修改验证码图片BUG

wyling 3 年之前
父節點
當前提交
66b76307b0
共有 1 個文件被更改,包括 2 次插入2 次删除
  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() {