From d17368d4a5bdec6db2d8a85c7901cdb25cc59cd4 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 11 十月 2021 15:16:25 +0800 Subject: [PATCH] 2021-10-11 --- src/tabviews/zshare/actionList/popupbutton/index.jsx | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/tabviews/zshare/actionList/popupbutton/index.jsx b/src/tabviews/zshare/actionList/popupbutton/index.jsx index 779669f..0705de6 100644 --- a/src/tabviews/zshare/actionList/popupbutton/index.jsx +++ b/src/tabviews/zshare/actionList/popupbutton/index.jsx @@ -54,6 +54,7 @@ } componentDidMount () { + MKEmitter.addListener('popclose', this.popclose) MKEmitter.addListener('triggerBtnId', this.actionTrigger) MKEmitter.addListener('openNewTab', this.openNewTab) MKEmitter.addListener('refreshPopButton', this.refreshPopButton) @@ -81,6 +82,7 @@ this.setState = () => { return } + MKEmitter.removeListener('popclose', this.popclose) MKEmitter.removeListener('openNewTab', this.openNewTab) MKEmitter.removeListener('triggerBtnId', this.actionTrigger) MKEmitter.removeListener('refreshPopButton', this.refreshPopButton) @@ -264,7 +266,7 @@ BID={popData ? primaryId : this.props.BID} BData={popData || this.props.BData} /> : null} - {btn.$view === 'CustomPage' ? <CustomPage Tab={btn} MenuID={btn.uuid} param={{$BID: (popData ? primaryId : this.props.BID), ...(popData || this.props.BData || {})}} /> : null} + {btn.$view === 'CustomPage' ? <CustomPage Tab={btn} MenuName={btn.label} MenuID={btn.uuid} param={{$BID: (popData ? primaryId : this.props.BID), ...(popData || this.props.BData || {})}} /> : null} <div className="close-drawer"> <Button onClick={this.popclose}> 鍏抽棴 -- Gitblit v1.8.0