From 753ac5f57b10588e225c1d82203b13a81bc9c9a7 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 03 十二月 2020 18:36:26 +0800 Subject: [PATCH] 2020-12-03 --- src/tabviews/custom/components/card/table-card/index.jsx | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/src/tabviews/custom/components/card/table-card/index.jsx b/src/tabviews/custom/components/card/table-card/index.jsx index 63a2e77..6459618 100644 --- a/src/tabviews/custom/components/card/table-card/index.jsx +++ b/src/tabviews/custom/components/card/table-card/index.jsx @@ -33,6 +33,10 @@ showHeader: false // 瀛樺湪鏍囬銆佹悳绱� } + /** + * @description 鍒濆鍖栧鐞� + * 1銆� initdata 涓烘墦鍗版椂浣跨敤鐨勬暟鎹泦 + */ UNSAFE_componentWillMount () { const { data, initdata } = this.props let _config = fromJS(this.props.config).toJS() @@ -188,7 +192,7 @@ if (type === 'refresh' && position === 'grid') { this.loadData() if (btn && btn.syncComponent && btn.syncComponent[0]) { - let syncId = btn.syncComponent[btn.syncComponent.length - 1] + let syncId = btn.syncComponent.slice(-1)[0] if (config.uuid !== syncId) { MKEmitter.emit('syncRefreshComponentId', syncId) } -- Gitblit v1.8.0