From 400fee62fb40006a9839f1c3a8244b82566b5057 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 08 五月 2025 16:30:39 +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