From 2ba755181d007efe20084a647e2478c5ead93748 Mon Sep 17 00:00:00 2001 From: Aaron <427787340@qq.com> Date: Mon, 2 Sep 2019 15:52:44 +0800 Subject: [PATCH] 修复Scheme静态表格emit事件 --- packages/scheme/index.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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