Browse Source

权限管理刷新清空搜索框

zhuth 7 years ago
parent
commit
f715881fe6
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/components/authority/index.jsx

+ 4 - 1
src/components/authority/index.jsx

@@ -147,7 +147,10 @@ class Authority extends React.Component {
                                 dispatch({ type: 'userGroup/fetchList', mandatory: true });
                                 dispatch({ type: 'user/fetchList', mandatory: true });
                                 dispatch({ type: 'dashboard/remoteMenuTree', mandatory: true }).then(() => {
-                                    dispatch({ type: 'authority/setField', name: 'panelLoading', value: false });
+                                    dispatch({ type: 'authority/setFields', fields: [
+                                        { name: 'panelLoading', value: false },
+                                        { name: 'dashboardFilterLabel', value: '' },
+                                    ]});
                                 });
                             }}>
                                 <Icon type='sync'/>