Commit 2ba755181d007efe20084a647e2478c5ead93748
1 parent
22ebc571
Exists in
master
and in
1 other branch
修复Scheme静态表格emit事件
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
packages/scheme/index.vue
| ... | ... | @@ -437,7 +437,7 @@ export default { |
| 437 | 437 | const { result = [] } = response; |
| 438 | 438 | this.tableData = result; |
| 439 | 439 | this.totalCount = response[totalCountAlias] || 0; |
| 440 | - this.emit(); | |
| 440 | + this.$nextTick(this.emit); | |
| 441 | 441 | } catch (error) { |
| 442 | 442 | console.error(error); |
| 443 | 443 | } finally { |
| ... | ... | @@ -460,7 +460,7 @@ export default { |
| 460 | 460 | this.tableData = list; |
| 461 | 461 | this.totalCount = result[totalCountAlias] || 0; |
| 462 | 462 | } |
| 463 | - this.emit(); | |
| 463 | + this.$nextTick(this.emit); | |
| 464 | 464 | }) |
| 465 | 465 | .finally(() => { |
| 466 | 466 | this.tableLoading = false; |
| ... | ... | @@ -492,7 +492,7 @@ export default { |
| 492 | 492 | this.tableData = resultData.slice(begin, end); |
| 493 | 493 | this.totalCount = resultData.length; |
| 494 | 494 | this.tableLoading = false; |
| 495 | - this.emit(); | |
| 495 | + this.$nextTick(this.emit); | |
| 496 | 496 | }); |
| 497 | 497 | } |
| 498 | 498 | }, | ... | ... |