This is an automated email from the ASF dual-hosted git repository.
likeguo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-shenyu-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new b77b59f8 [type:fixbug] fix warning error in console about
componentWillUnmount method (#211)
b77b59f8 is described below
commit b77b59f8a466a51f19e6dc32ce9240015f3fdacc
Author: wjlonger <[email protected]>
AuthorDate: Mon Jun 27 18:58:13 2022 +0800
[type:fixbug] fix warning error in console about componentWillUnmount
method (#211)
* fix: fix warning error in console about componentWillUnmount method
* fix: fix warning error in console about componentWillUnmount method
Co-authored-by: 吴俊龙 <[email protected]>
---
src/layouts/BasicLayout.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js
index 2d60f771..01fec43d 100644
--- a/src/layouts/BasicLayout.js
+++ b/src/layouts/BasicLayout.js
@@ -149,6 +149,10 @@ class BasicLayout extends React.PureComponent {
});
}
+ componentWillUnmount() {
+ this.setState = () => {}
+ }
+
getPageTitle() {
const { routerData, location } = this.props;
const { pathname } = location;