From e293f4b0edc825382a57e91f9288e387ca53e37c Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 15 六月 2025 12:05:52 +0800 Subject: [PATCH] 2025-06-15 --- src/utils/asyncLoadComponent.jsx | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/utils/asyncLoadComponent.jsx b/src/utils/asyncLoadComponent.jsx index 74929c1..2d1bcd3 100644 --- a/src/utils/asyncLoadComponent.jsx +++ b/src/utils/asyncLoadComponent.jsx @@ -21,12 +21,18 @@ this.setState({component}) } + componentWillUnmount () { + this.setState = () => { + return + } + } + render() { const C = this.state.component return C ? <C {...this.props} /> : - <Spin style={{position: 'fixed', left: 'calc(50vw - 22px)', top: 'calc(50vh - 70px)'}} size="large" /> + <Spin style={{position: 'fixed', left: 'calc(50vw - 22px)', top: 'calc(50vh - 70px)', zIndex: 10}} size="large" /> } } } \ No newline at end of file -- Gitblit v1.8.0