@fewangsit/wangsvue-fats 1.0.1-rc.12 → 1.0.1-rc.14

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/tree/index.es.js CHANGED
@@ -120,7 +120,10 @@ const be = (r, c = !1) => Object.keys(P(r, c)).map(Number), P = (r, c = !1) => O
120
120
  }, k = async (e = !0) => {
121
121
  try {
122
122
  g.value = !0;
123
- const { data: t } = await G.value.fetchTree(s.type, s.params);
123
+ const { data: t } = await G.value.fetchTree(
124
+ s.type,
125
+ s.params
126
+ ) ?? { data: [] };
124
127
  if (t) {
125
128
  const l = A(t);
126
129
  h.value = j(t), y.value = l, sessionStorage.setItem(`${s.type}Tree`, JSON.stringify(l)), sessionStorage.setItem(