解决bug:关于Jupload组件的上传后再进行新增会保留上次的上传结果的问题 #326

pull/1738/head
zhangdaihao 2019-07-31 22:47:48 +08:00
parent 3bd6afd17d
commit 5ad54c8a49
1 changed files with 5 additions and 1 deletions

View File

@ -83,7 +83,11 @@
methods:{ methods:{
initFileList(paths){ initFileList(paths){
if(!paths || paths.length==0){ if(!paths || paths.length==0){
return []; //return [];
// update-begin- --- author:os_chengtgen ------ date:20190729 ---- for:issues:326,Jupload组件初始化bug
this.fileList = [];
return;
// update-end- --- author:os_chengtgen ------ date:20190729 ---- for:issues:326,Jupload组件初始化bug
} }
let fileList = []; let fileList = [];
let arr = paths.split(",") let arr = paths.split(",")