diff --git a/packages/scheme/index.vue b/packages/scheme/index.vue index 8abf529..ecdcc24 100644 --- a/packages/scheme/index.vue +++ b/packages/scheme/index.vue @@ -437,7 +437,7 @@ export default { const { result = [] } = response; this.tableData = result; this.totalCount = response[totalCountAlias] || 0; - this.emit(); + this.$nextTick(this.emit); } catch (error) { console.error(error); } finally { @@ -460,7 +460,7 @@ export default { this.tableData = list; this.totalCount = result[totalCountAlias] || 0; } - this.emit(); + this.$nextTick(this.emit); }) .finally(() => { this.tableLoading = false; @@ -492,7 +492,7 @@ export default { this.tableData = resultData.slice(begin, end); this.totalCount = resultData.length; this.tableLoading = false; - this.emit(); + this.$nextTick(this.emit); }); } }, -- libgit2 0.21.0