Commit 02879fef authored by youjie's avatar youjie

no message

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