From 047dbd742341e268ca772eda8d2ff0b6ba09cb44 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 05 六月 2025 16:57:36 +0800
Subject: [PATCH] 2025-06-05

---
 src/utils/asyncIconComponent.jsx |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/utils/asyncIconComponent.jsx b/src/utils/asyncIconComponent.jsx
index 7d89b29..2624be9 100644
--- a/src/utils/asyncIconComponent.jsx
+++ b/src/utils/asyncIconComponent.jsx
@@ -1,5 +1,5 @@
 import React, {Component} from 'react'
-import { Icon } from 'antd'
+import { LoadingOutlined } from '@ant-design/icons'
 
 /**
  * @description 寮傛鍔犺浇妯″潡
@@ -21,10 +21,16 @@
       this.setState({component})
     }
 
+    componentWillUnmount () {
+      this.setState = () => {
+        return
+      }
+    }
+
     render() {
       const C = this.state.component
 
-      return C ? <C {...this.props} /> : <Icon type="loading" />
+      return C ? <C {...this.props} /> : <LoadingOutlined />
     }
   }
 }
\ No newline at end of file

--
Gitblit v1.8.0