代码优化

This commit is contained in:
Elune
2019-12-18 13:24:39 +08:00
parent 47d83846ef
commit b3528e88d0
15 changed files with 91 additions and 113 deletions

View File

@@ -126,11 +126,7 @@ export default {
type: 'warning'
}).then(() => {
this.crud.delAllLoading = true
if (datas.length === 1) {
this.crud.doDelete(datas[0])
} else {
this.crud.doDeletes(datas)
}
this.crud.doDelete(datas)
}).catch(() => {
})
},