Commit 02879fef authored by youjie's avatar youjie

no message

parent 740b8b1b
...@@ -422,17 +422,29 @@ ...@@ -422,17 +422,29 @@
}); });
}, },
//上传图片 //上传图片
UploadAttachment(file) { UploadAttachment(file,type) {
let newArr = []; let newArr = [];
newArr.push(file.file); newArr.push(file.file);
var path = "/Upload/WebSite/"; var path = "/Upload/WebSite/";
this.$message.info(this.$t('tips.shangchuanzhong')) this.$message.info(this.$t('tips.shangchuanzhong'))
this.UploadSelfFileT(path, newArr, x => { if(this.plugData.MenuList[this.menuIndex].FileType==1){
var str = x.data.FilePath; console.log(this.plugData.MenuList[this.menuIndex].FileUrl,'-----11111')
var imgUrl = this.domainManager().ViittoFileUrl + str; this.UploadSelfFileT(path, newArr, x => {
this.plugData.MenuList[this.menuIndex].FileUrl = imgUrl; var str = x.data.FilePath;
this.$message.success(this.$t('tips.scchenggong')); var imgUrl = this.domainManager().ViittoFileUrl + str;
}); this.plugData.MenuList[this.menuIndex].FileUrl = imgUrl;
this.$message.success(this.$t('tips.scchenggong'));
});
}else{
console.log(this.plugData.MenuList[this.menuIndex].FileUrl,'-----22222')
this.UploadFileToAli2024(path, newArr, x => {
var str = x.data.FilePath;
var imgUrl = this.domainManager().ViittoFileUrl + str;
this.plugData.MenuList[this.menuIndex].FileUrl = imgUrl;
this.$message.success(this.$t('tips.scchenggong'));
});
}
}, },
UploadAttachment2(file) { UploadAttachment2(file) {
let newArr = []; let newArr = [];
......
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