Browse Source

[修正] 修正删除文件BUG

master
陈鹏飞 4 years ago
parent
commit
734c9d2c9c
  1. 2
      src/app/ui/all-file/all-file.component.ts

2
src/app/ui/all-file/all-file.component.ts

@ -689,7 +689,7 @@ export class AllFileComponent {
this.selection.selected.forEach((element)=>{ this.selection.selected.forEach((element)=>{
let data = element.key.split("/"); let data = element.key.split("/");
this.isTrueDelete.forEach(elements => { this.isTrueDelete.forEach(elements => {
if (elements==data[data.length-2] && data.length-2==2) { if (elements==data[data.length-2] && data.length-2==2 && !data[data.length-1]) {
arrList.push('true') arrList.push('true')
} }
}); });

Loading…
Cancel
Save