Explorar o código

更新 captchaCode

reghao %!s(int64=2) %!d(string=hai) anos
pai
achega
4898289df8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 = '获取图形验证码失败, 请重新刷新页面'