重构: 添加全局文件及图片上传配置

pull/52/MERGE
李强 2022-04-25 14:32:46 +08:00
parent ef831bacb0
commit 614adf6d74
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ Vue.use(D2pUploader, {
if (ret.data === null || ret.data === '') {
throw new Error('上传失败')
}
return { url: ret.data.data.url, key: option.data.key }
return { url: util.baseURL() + 'media/' + ret.data.data.url, key: option.data.key }
},
withCredentials: false // 是否带cookie
}