liyu-pc-base 1.0.114 → 1.0.119

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.
@@ -1,12 +1,12 @@
1
- import { n as d } from "../init-plugin-481311d3.js";
2
- async function f(n, l, s, i = {}) {
1
+ import { o as d } from "../init-plugin-515c0649.js";
2
+ async function f(l, n, s, i = {}) {
3
3
  if (s) {
4
4
  let h = function(t) {
5
5
  t.forEach((a) => {
6
- a != null && a.children && a.children.length > 0 ? (a.children.sort((p, u) => p.sort - u.sort), h(a.children)) : delete a.children;
6
+ a != null && a.children && a.children.length > 0 ? (a.children.sort((o, p) => o.sort - p.sort), h(a.children)) : delete a.children;
7
7
  });
8
8
  };
9
- const e = await d().post(l, n, i), c = new Map(
9
+ const e = await d().post(n, l, i), c = new Map(
10
10
  e.data.map((t) => [
11
11
  t.id,
12
12
  { ...t, key: t.id, value: t.id, title: t.name, children: [] }
@@ -17,13 +17,13 @@ async function f(n, l, s, i = {}) {
17
17
  t.key = t.id, t.value = t.id, t.title = t.name, t.parent_id !== null && ((a = c.get(t.parent_id)) != null && a.children) ? c.get(t.parent_id).children.push(c.get(t.id)) : r.push(c.get(t.id));
18
18
  }), r.sort((t, a) => t.sort - a.sort), h(r), e.data = r, r.length != 0 ? (e.data = r, e.total = r.length) : e.total = e.data.length, e;
19
19
  } else
20
- return d().post(l, n, i);
20
+ return d().post(n, l, i);
21
21
  }
22
- async function g(n, l, s) {
23
- return d().post(l, n, s);
22
+ async function g(l, n, s) {
23
+ return d().post(n, l, s);
24
24
  }
25
- async function y(n, l, s) {
26
- return d().put(l, n, s);
25
+ async function y(l, n, s) {
26
+ return d().put(n, l, s);
27
27
  }
28
28
  export {
29
29
  f as getApiData,
@@ -1,7 +1,7 @@
1
- import { q as y, y as c } from "../../init-plugin-481311d3.js";
1
+ import { t as p, A as c } from "../../init-plugin-515c0649.js";
2
2
  import { message as f } from "ant-design-vue";
3
- const p = (e) => e instanceof Array ? e.join() : e instanceof Object ? JSON.stringify(e) : e.toString(), S = (e) => e instanceof Array ? e.join() : typeof e == "number" ? String(e) : e === void 0 ? "undefined" : e === null ? "null" : typeof e == "boolean" ? String(e) : typeof e == "object" ? Object.keys(e).sort((t, u) => t.localeCompare(u)).map((t) => `${t}-${p(e[t])}`).join() : (console.error("error type" + typeof e), e.toString()), O = (e, t) => (o, l) => {
4
- const n = y().currentOrg, a = Object.keys(o).sort((r, i) => r.localeCompare(i)).map((r) => `${r}-${S(o[r])}`).join(), m = (/* @__PURE__ */ new Date()).getTime() + 3600 * 1e3, s = c().get(`${n == null ? void 0 : n.id}_${t}`);
3
+ const y = (e) => e instanceof Array ? e.join() : e instanceof Object ? JSON.stringify(e) : e.toString(), S = (e) => e instanceof Array ? e.join() : typeof e == "number" ? String(e) : e === void 0 ? "undefined" : e === null ? "null" : typeof e == "boolean" ? String(e) : typeof e == "object" ? Object.keys(e).sort((t, u) => t.localeCompare(u)).map((t) => `${t}-${y(e[t])}`).join() : (console.error("error type" + typeof e), e.toString()), O = (e, t) => (o, l) => {
4
+ const n = p().currentOrg, a = Object.keys(o).sort((r, i) => r.localeCompare(i)).map((r) => `${r}-${S(o[r])}`).join(), m = (/* @__PURE__ */ new Date()).getTime() + 3600 * 1e3, s = c().get(`${n == null ? void 0 : n.id}_${t}`);
5
5
  return new Promise((r) => {
6
6
  !l && s && s.time > (/* @__PURE__ */ new Date()).getTime() && s.paramsKey == a ? r(s.data) : e(o).then((i) => {
7
7
  c().set(`${n == null ? void 0 : n.id}_${t}`, {