Commit 64db3e8d authored by 华国豪's avatar 华国豪 🙄

修改部分

parent 8e406f63
...@@ -188,11 +188,10 @@ export default { ...@@ -188,11 +188,10 @@ export default {
let fileName = file.file.name; let fileName = file.file.name;
let that = this; let that = this;
let path = "/Upload/DMC/"; let path = "/Upload/DMC/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
var str = x.res.requestUrls[0];
that.PostConfig.fileList[ that.PostConfig.fileList[
this.updateChoseIndex this.updateChoseIndex
].Url = this.$commonUtils.GetALiFileUrl(str); ].Url = this.domainManager().ViittoFileUrl + x.data.FilePath;
that.PostConfig.fileList[this.updateChoseIndex].Name = fileName; that.PostConfig.fileList[this.updateChoseIndex].Name = fileName;
}); });
}, },
......
...@@ -196,11 +196,10 @@ export default { ...@@ -196,11 +196,10 @@ export default {
let that = this; let that = this;
let path = "/Upload/DMC/"; let path = "/Upload/DMC/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
var str = x.res.requestUrls[0];
that.FeatureData.fileList[ that.FeatureData.fileList[
this.updateChoseIndex this.updateChoseIndex
].Url = this.$commonUtils.GetALiFileUrl(str); ].Url = this.domainManager().ViittoFileUrl + x.data.FilePath;
that.FeatureData.fileList[this.updateChoseIndex].Name = fileName; that.FeatureData.fileList[this.updateChoseIndex].Name = fileName;
}); });
}, },
......
...@@ -212,11 +212,11 @@ export default { ...@@ -212,11 +212,11 @@ export default {
let fileName = file.file.name; let fileName = file.file.name;
let that = this; let that = this;
let path = "/Upload/DMC/"; let path = "/Upload/DMC/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
var str = x.res.requestUrls[0]; var str = x.res.requestUrls[0];
that.PostConfig.fileList[ that.PostConfig.fileList[
this.updateChoseIndex this.updateChoseIndex
].Url = this.$commonUtils.GetALiFileUrl(str); ].Url = this.domainManager().ViittoFileUrl + x.data.FilePath;
that.PostConfig.fileList[this.updateChoseIndex].Name = fileName; that.PostConfig.fileList[this.updateChoseIndex].Name = fileName;
}); });
}, },
......
...@@ -435,11 +435,11 @@ export default { ...@@ -435,11 +435,11 @@ export default {
let that = this; let that = this;
let path = "/Upload/DMC/"; let path = "/Upload/DMC/";
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
var str = x.res.requestUrls[0]; var str = x.res.requestUrls[0];
that.FeatureData.fileList[ that.FeatureData.fileList[
this.updateChoseIndex this.updateChoseIndex
].Url = this.$commonUtils.GetALiFileUrl(str); ].Url = this.domainManager().ViittoFileUrl + x.data.FilePath;
that.FeatureData.fileList[this.updateChoseIndex].Name = fileName; that.FeatureData.fileList[this.updateChoseIndex].Name = fileName;
}); });
}, },
......
...@@ -1127,8 +1127,8 @@ export default { ...@@ -1127,8 +1127,8 @@ export default {
newArr.push(file.file); newArr.push(file.file);
let path = "/Upload/DMC/"; let path = "/Upload/DMC/";
this.$message.info("上传中..."); this.$message.info("上传中...");
this.uploadFile(path, newArr, x => { this.UploadSelfFile(path, newArr, x => {
this.priceData.AdImage = this.domainManager().AliUrl + x.name; this.priceData.AdImage = this.domainManager().ViittoFileUrl + x.data.FilePath;
}); });
}, },
//删除图片 //删除图片
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment