From db8bd77ac3efba767d44186a77aef3cd6f9b9d6e Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 09 十二月 2024 15:38:57 +0800 Subject: [PATCH] Merge branch 'master' into positec --- src/tabviews/zshare/actionList/asyncButtonComponent.jsx | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/tabviews/zshare/actionList/asyncButtonComponent.jsx b/src/tabviews/zshare/actionList/asyncButtonComponent.jsx index 30d70ed..1265253 100644 --- a/src/tabviews/zshare/actionList/asyncButtonComponent.jsx +++ b/src/tabviews/zshare/actionList/asyncButtonComponent.jsx @@ -21,7 +21,12 @@ this.setState({component}) } - // <Button className="loading-skeleton" disabled={true}></Button> // 楠ㄦ灦鎸夐挳 + componentWillUnmount () { + this.setState = () => { + return + } + } + render() { const C = this.state.component const btn = this.props.btn || {} @@ -36,7 +41,7 @@ return C ? <C {...this.props} /> : - <Button className={'mk-btn mk-' + btn.class} style={style} icon={btn.icon} disabled={true} >{btn.label}</Button> + <Button className={'mk-btn mk-' + btn.class} style={style} disabled={true} >{btn.label}</Button> } } } \ No newline at end of file -- Gitblit v1.8.0