浏览代码

fix categoryTree onLoad

ilya_shyian 1 年之前
父节点
当前提交
7a6e70345a
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/components/admin/AdminLayoutPage/index.js

+ 2 - 2
src/components/admin/AdminLayoutPage/index.js

@@ -22,8 +22,8 @@ const AdminCategoryTreePageContainer = ({ onLoad, onUnmount }) => {
 };
 
 const CAdminCategoryTreePageContainer = connect(null, {
-    onUnmount: () => actionCatAll(),
-    onLoad: () => actionPromiseClear("catAll"),
+    onUnmount: () => actionPromiseClear("catAll"),
+    onLoad: () => actionCatAll(),
 })(AdminCategoryTreePageContainer);
 
 const AdminLayoutPage = () => {