From 91e232bb0b910f3670bdbccd65cc218d55e1eda9 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 06 十二月 2022 16:08:20 +0800 Subject: [PATCH] Merge branch 'develop' --- src/utils/asyncSpinComponent.jsx | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/utils/asyncSpinComponent.jsx b/src/utils/asyncSpinComponent.jsx index d9be073..336ae9f 100644 --- a/src/utils/asyncSpinComponent.jsx +++ b/src/utils/asyncSpinComponent.jsx @@ -21,12 +21,18 @@ this.setState({component}) } + componentWillUnmount () { + this.setState = () => { + return + } + } + render() { const C = this.state.component return C ? <C {...this.props} /> : - <div style={{textAlign: 'center', minHeight: 50, lineHeight: '50px'}}><Spin/></div> + <div className="async-spin" style={{textAlign: 'center', minHeight: 50, lineHeight: '50px', background: '#ffffff'}}><Spin/></div> } } } \ No newline at end of file -- Gitblit v1.8.0