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

修改部分

parent 8e406f63
......@@ -188,11 +188,10 @@ export default {
let fileName = file.file.name;
let that = this;
let path = "/Upload/DMC/";
this.uploadFile(path, newArr, x => {
var str = x.res.requestUrls[0];
this.UploadSelfFile(path, newArr, x => {
that.PostConfig.fileList[
this.updateChoseIndex
].Url = this.$commonUtils.GetALiFileUrl(str);
].Url = this.domainManager().ViittoFileUrl + x.data.FilePath;
that.PostConfig.fileList[this.updateChoseIndex].Name = fileName;
});
},
......
......@@ -196,11 +196,10 @@ export default {
let that = this;
let path = "/Upload/DMC/";
this.uploadFile(path, newArr, x => {
var str = x.res.requestUrls[0];
this.UploadSelfFile(path, newArr, x => {
that.FeatureData.fileList[
this.updateChoseIndex
].Url = this.$commonUtils.GetALiFileUrl(str);
].Url = this.domainManager().ViittoFileUrl + x.data.FilePath;
that.FeatureData.fileList[this.updateChoseIndex].Name = fileName;
});
},
......
......@@ -212,11 +212,11 @@ export default {
let fileName = file.file.name;
let that = this;
let path = "/Upload/DMC/";
this.uploadFile(path, newArr, x => {
this.UploadSelfFile(path, newArr, x => {
var str = x.res.requestUrls[0];
that.PostConfig.fileList[
this.updateChoseIndex
].Url = this.$commonUtils.GetALiFileUrl(str);
].Url = this.domainManager().ViittoFileUrl + x.data.FilePath;
that.PostConfig.fileList[this.updateChoseIndex].Name = fileName;
});
},
......
......@@ -435,11 +435,11 @@ export default {
let that = this;
let path = "/Upload/DMC/";
this.uploadFile(path, newArr, x => {
this.UploadSelfFile(path, newArr, x => {
var str = x.res.requestUrls[0];
that.FeatureData.fileList[
this.updateChoseIndex
].Url = this.$commonUtils.GetALiFileUrl(str);
].Url = this.domainManager().ViittoFileUrl + x.data.FilePath;
that.FeatureData.fileList[this.updateChoseIndex].Name = fileName;
});
},
......
......@@ -1127,8 +1127,8 @@ export default {
newArr.push(file.file);
let path = "/Upload/DMC/";
this.$message.info("上传中...");
this.uploadFile(path, newArr, x => {
this.priceData.AdImage = this.domainManager().AliUrl + x.name;
this.UploadSelfFile(path, newArr, x => {
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