【fix】图片上传组件的回显bug修改

This commit is contained in:
zer0Black
2022-09-14 20:26:59 +08:00
parent c74447a938
commit 5f5d7d18e4
2 changed files with 17 additions and 7 deletions
+3 -1
View File
@@ -1,5 +1,6 @@
import Vue from 'vue'
import { axios } from '@/utils/request'
import { ACCESS_TOKEN } from "@/store/mutation-types"
import signMd5Utils from '@/utils/encryption/signMd5Utils'
const api = {
@@ -188,7 +189,8 @@ export function getFileAccessHttpUrl(avatar,subStr) {
return avatar;
}else{
if(avatar && avatar.length>0 && avatar.indexOf('[')==-1){
return window._CONFIG['staticDomainURL'] + "/" + avatar;
let token = Vue.ls.get(ACCESS_TOKEN);
return window._CONFIG['staticDomainURL'] + "/" + avatar + "?token=" + token;
}
}
}catch(err){