@gingkoo/pandora-explorer 0.0.1-alpha.42 → 0.0.1-alpha.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @gingkoo/pandora-explorer v0.0.1-alpha.42
2
+ * @gingkoo/pandora-explorer v0.0.1-alpha.43
3
3
  */
4
4
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
5
  import cx$1 from 'classnames';
@@ -7239,7 +7239,7 @@ const Layout$1 = props => {
7239
7239
  store.setCurInfo(info);
7240
7240
  store.setCurList(info?.children);
7241
7241
  } else {
7242
- loadData(key, info);
7242
+ loadData(key);
7243
7243
  }
7244
7244
  let arr = [...(store.log || [])];
7245
7245
  if (arr.length !== store.logindex) {
@@ -7625,10 +7625,15 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
7625
7625
  //清空日志
7626
7626
  setLog([]);
7627
7627
  },
7628
- updateData: () => {
7629
- if (curInfo?.key) {
7630
- loadData(curInfo.key, curInfo);
7631
- reloadNode(curInfo.key);
7628
+ updateData: key => {
7629
+ if (key) {
7630
+ loadData(key);
7631
+ reloadNode(key);
7632
+ } else {
7633
+ if (curInfo?.key) {
7634
+ loadData(curInfo.key);
7635
+ reloadNode(curInfo.key);
7636
+ }
7632
7637
  }
7633
7638
  }
7634
7639
  }));
@@ -7749,6 +7754,7 @@ const Explorer = /*#__PURE__*/forwardRef((props, ref) => {
7749
7754
  if (info.create_file) {
7750
7755
  if (curInfo) {
7751
7756
  await createFile?.(value, curInfo);
7757
+ curInfo?.key && loadData(curInfo?.key);
7752
7758
  reloadNode(curInfo?.key);
7753
7759
  }
7754
7760
  } else {