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 2022/06/27 10:42:46 UTC

[incubator-shenyu-dashboard] branch master updated: fix: fix data display bug (#210)

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 e17145b7 fix: fix data display bug (#210)
e17145b7 is described below

commit e17145b72b9096851e6a9d304cc2ae1257977276
Author: wjlonger <i...@wujunlong.com>
AuthorDate: Mon Jun 27 18:42:42 2022 +0800

    fix: fix data display bug (#210)
    
    Co-authored-by: 吴俊龙 <wu...@zhichubao.com>
---
 src/routes/System/PluginHandle/index.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/routes/System/PluginHandle/index.js b/src/routes/System/PluginHandle/index.js
index 31ef2f61..a012c698 100644
--- a/src/routes/System/PluginHandle/index.js
+++ b/src/routes/System/PluginHandle/index.js
@@ -47,18 +47,18 @@ export default class PluginHandle extends Component {
   }
 
   componentWillMount = async () => {
-    this.loadPluginDict();
+    await this.loadPluginDict();
 
     this.initPluginColumns();
 
     this.query()
   }
 
-  componentDidUpdate() {
+  componentDidUpdate = async () => {
     const { language } = this.props;
     const { localeName } = this.state;
     if (language !== localeName) {
-      this.loadPluginDict();
+      await this.loadPluginDict();
       this.initPluginColumns();
       this.changeLocale(language);
     }
@@ -84,9 +84,9 @@ export default class PluginHandle extends Component {
   /**
    * load plugin drop dict
    */
-  loadPluginDict = () => {
+  loadPluginDict = async () => {
     const {dispatch} = this.props;
-    dispatch({
+    await dispatch({
       type: "pluginHandle/fetchPluginList",
     });
     this.setState({pluginDict: this.props.pluginHandle.pluginDropDownList})