|
@@ -259,7 +259,7 @@
|
|
|
data() {
|
|
|
return {
|
|
|
// 上传相关
|
|
|
- uploadImgUrl: window.location.href.split('://')[0]+'://' + process.env.VUE_APP_BASE_API + "/base/upload", // 上传的图片服务器地址
|
|
|
+ uploadImgUrl: this.uploadUrl(), // 上传的图片服务器地址
|
|
|
headers: {
|
|
|
Authorization: "Bearer " + getToken()
|
|
|
},
|
|
@@ -316,7 +316,7 @@
|
|
|
//文件列表
|
|
|
fileList:[],
|
|
|
options: {
|
|
|
- target: httpHeader+process.env.VUE_APP_BASE_API+"/base/upload/chunk",
|
|
|
+ target: httpHeader+process.env.VUE_APP_BASE_API+"/base/file/upload/chunk",
|
|
|
// 开启服务端分片校验功能
|
|
|
testChunks: true,
|
|
|
single: true,
|
|
@@ -633,7 +633,7 @@
|
|
|
fileSuccess(rootFile, file, response, chunk) {
|
|
|
const result = JSON.parse(response);
|
|
|
if (result.success && !this.skip) {
|
|
|
- axios.post(httpHeader+process.env.VUE_APP_BASE_API+"/base/upload/merge", {
|
|
|
+ axios.post(httpHeader+process.env.VUE_APP_BASE_API+"/base/file/upload/merge", {
|
|
|
identifier: file.uniqueIdentifier,
|
|
|
filename: file.name,
|
|
|
totalChunks: chunk.offset,
|