|
@@ -426,10 +426,10 @@
|
|
|
if (file.type == 'application/vnd.android.package-archive') {
|
|
|
type = true;
|
|
|
}else{
|
|
|
- this.$message.error('只能上传png/jpeg/gif格式图片');
|
|
|
+ this.$message.error('只能上传APK格式文件');
|
|
|
type = false;
|
|
|
}
|
|
|
- console.log('file');
|
|
|
+ console.log('file',file);
|
|
|
return type;
|
|
|
},
|
|
|
// 新增/编辑节点单击事件
|
|
@@ -500,12 +500,9 @@
|
|
|
return
|
|
|
}
|
|
|
this.fileList=[];
|
|
|
- this.$refs.uploader.files = [];
|
|
|
- this.$refs.uploader.fileList = [];
|
|
|
- console.log("this.$refs.uploader",this.$refs.uploader);
|
|
|
+ // this.$refs.uploader.files = [];
|
|
|
+ // this.$refs.uploader.fileList = [];
|
|
|
//this.$refs.uploader.allRemove();
|
|
|
- console.log("this.$refs.uploader",this.$refs.uploader);
|
|
|
- console.log("this.$refs.files",this.$refs.files);
|
|
|
this.fileData = {};
|
|
|
this.openUp = false;
|
|
|
},
|
|
@@ -573,9 +570,9 @@
|
|
|
this.openUp = false;
|
|
|
this.upForm = {};
|
|
|
this.fileList=[];
|
|
|
- this.$refs.uploader.files = [];
|
|
|
- this.$refs.uploader.fileList = [];
|
|
|
- this.$refs.uploader.cancel()
|
|
|
+ // this.$refs.uploader.files = [];
|
|
|
+ // this.$refs.uploader.fileList = [];
|
|
|
+ // this.$refs.uploader.cancel()
|
|
|
this.fileData = {};
|
|
|
});
|
|
|
}
|
|
@@ -686,10 +683,8 @@
|
|
|
console.log("file",file)
|
|
|
console.log("fileList",fileList)
|
|
|
console.log("event",event)
|
|
|
- this.$refs.uploader.fileList = [];
|
|
|
- this.$refs.uploader.files = [];
|
|
|
- console.log("this.$refs.files================",this.$refs.files);
|
|
|
- console.log("this.$refs.uploader================",this.$refs.uploader);
|
|
|
+ // this.$refs.uploader.fileList = [];
|
|
|
+ // this.$refs.uploader.files = [];
|
|
|
this.fileList=[];
|
|
|
file.forEach((e) => {
|
|
|
this.fileList.push(e);
|