소스 검색

更新 captchaCode

reghao 2 년 전
부모
커밋
4898289df8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/assets/js/mixin.js

+ 1 - 1
src/assets/js/mixin.js

@@ -58,7 +58,7 @@ export const userMixin = {
     getCaptcha() {
       getCaptchaCode().then(res => {
         if (res.code === 0) {
-          this.captchaCode = 'data:image/jpeg;base64,' + res.data
+          this.captchaCode = res.data
           this.dialogVisible = true
         } else {
           this.message = '获取图形验证码失败, 请重新刷新页面'