Commit 04dccc84cc2333b1d98b1bce272e81dbdd7eb729
1 parent
4ee84e75
chore: remote update list after delete item
Showing
1 changed file
with
2 additions
and
0 deletions
front-end/h5/src/views/work-manager/list-mixin.js
| @@ -46,6 +46,8 @@ export default { | @@ -46,6 +46,8 @@ export default { | ||
| 46 | this.deleteWork(work.id).then(res => { | 46 | this.deleteWork(work.id).then(res => { |
| 47 | const index = this.workList.findIndex(item => item.id === work.id) | 47 | const index = this.workList.findIndex(item => item.id === work.id) |
| 48 | this.workList.splice(index, 1) | 48 | this.workList.splice(index, 1) |
| 49 | + this.fetchCount({ is_template: this.isTemplate }) | ||
| 50 | + this.handleSearch() | ||
| 49 | }) | 51 | }) |
| 50 | }, | 52 | }, |
| 51 | handleSearch () { | 53 | handleSearch () { |