Przeglądaj źródła

上传图片或引用图片路径修复

zweizhao 7 lat temu
rodzic
commit
e3daa2009e
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/module/main/components/dev_show.vue

+ 1 - 1
src/module/main/components/dev_show.vue

@@ -146,7 +146,7 @@ export default {
       this.centerDialogVisible = true;
       this.centerDialogVisible = true;
     },
     },
     handleAvatarSuccess(res, file) {
     handleAvatarSuccess(res, file) {
-      this.ruleForm.url = res.data.file_url;
+      this.ruleForm.url = res.data.file_url_abs;
     },
     },
     beforeAvatarUpload(file) {
     beforeAvatarUpload(file) {
       const isJPG = file.type === 'image/jpeg' || file.type === 'image/png';
       const isJPG = file.type === 'image/jpeg' || file.type === 'image/png';