You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by li...@apache.org on 2023/10/06 08:16:34 UTC
[shenyu-dashboard] branch master updated: [Optimization] Optimizing AuthRoute.js Deprecated React Lifecycle (#348)
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/shenyu-dashboard.git
The following commit(s) were added to refs/heads/master by this push:
new 49ff6edb [Optimization] Optimizing AuthRoute.js Deprecated React Lifecycle (#348)
49ff6edb is described below
commit 49ff6edb039f32bd1bc768f891384c32418f0c8a
Author: VampireAchao <ac...@gmail.com>
AuthorDate: Fri Oct 6 03:16:29 2023 -0500
[Optimization] Optimizing AuthRoute.js Deprecated React Lifecycle (#348)
---
src/utils/AuthRoute.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/utils/AuthRoute.js b/src/utils/AuthRoute.js
index d37ee7ad..b7300586 100644
--- a/src/utils/AuthRoute.js
+++ b/src/utils/AuthRoute.js
@@ -276,7 +276,7 @@ const setMenuIconAndSort = (menus, permissions) => {
loading: loading.effects["global/fetchPermission"]
}))
export default class AuthRoute extends Component {
- componentWillMount() {
+ componentDidMount() {
const {
global: { permissions },
loading,