Przeglądaj źródła

文件夹重命名失败不关闭弹窗(3141)

zhangxc 5 lat temu
rodzic
commit
3d99f7bd5f

+ 1 - 1
src/components/PushContainer/index.jsx

@@ -441,7 +441,7 @@ class PushContainer extends Component {
     } else if(type == 5) {
       if(this.props.admin){
         store.dispatch(newFloder(floderName,folderId,'modify'))
-        store.dispatch(changeVisible(false))
+        // store.dispatch(changeVisible(false))
       }else{
       }
     }

+ 2 - 1
src/store/async-actions/tabTemplate.js

@@ -13,7 +13,7 @@ import {
   changeTitleAdmin,
   floderListAdmin,
   folderModal,
-  setSearchTemplateNorms
+  setSearchTemplateNorms,
 } from '@store/actions/tabTemplate';
 import {DIAG_SHOW} from "@store/types/print";
 import Notify from '@commonComp/Notify';
@@ -253,6 +253,7 @@ export const newFloder = (name,id,type) => { //新建管理员文件夹
         dispatch(folderModal(false))
         dispatch(getFloderList())
         dispatch(getFloderListAll())
+        dispatch(changeVisible(false))
       } else {
         Notify.error(data.msg);
       }