yc-vep-ui 0.6.6 → 0.6.8
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.
|
@@ -1737,11 +1737,16 @@ var fn = { style: {
|
|
|
1737
1737
|
}), Zn = /* @__PURE__ */ V({ default: () => Qn }), Qn = Xn;
|
|
1738
1738
|
//#endregion
|
|
1739
1739
|
//#region src/utils/request.ts
|
|
1740
|
-
function $n() {
|
|
1741
|
-
|
|
1740
|
+
function $n(e) {
|
|
1741
|
+
let { url: t, options: n } = e, r = n.headers || {};
|
|
1742
|
+
return n.headers = new Headers({
|
|
1742
1743
|
"Content-Type": "application/json",
|
|
1743
|
-
token: localStorage.getItem("TOKEN") || ""
|
|
1744
|
-
|
|
1744
|
+
token: localStorage.getItem("TOKEN") || "",
|
|
1745
|
+
...r
|
|
1746
|
+
}), {
|
|
1747
|
+
url: t,
|
|
1748
|
+
options: n
|
|
1749
|
+
};
|
|
1745
1750
|
}
|
|
1746
1751
|
function er(e) {
|
|
1747
1752
|
if (e.code !== "ok" && (e.message === "无效的token" || e.message === "当前用户未登录")) {
|
|
@@ -1757,28 +1762,36 @@ async function tr(e, t, n = {}) {
|
|
|
1757
1762
|
let e = new URLSearchParams(t).toString();
|
|
1758
1763
|
e && (r = `${r}?${e}`);
|
|
1759
1764
|
}
|
|
1760
|
-
let i =
|
|
1765
|
+
let i = {
|
|
1761
1766
|
method: "GET",
|
|
1762
|
-
|
|
1763
|
-
}
|
|
1764
|
-
|
|
1767
|
+
...n
|
|
1768
|
+
}, a = $n({
|
|
1769
|
+
url: r,
|
|
1770
|
+
options: i
|
|
1771
|
+
}), o = await (await fetch(a.url, a.options)).json();
|
|
1772
|
+
return er(o), o;
|
|
1765
1773
|
}
|
|
1766
1774
|
async function nr(e, t, n = {}) {
|
|
1767
|
-
let r =
|
|
1775
|
+
let r = {
|
|
1768
1776
|
method: "POST",
|
|
1769
1777
|
body: JSON.stringify(t),
|
|
1770
|
-
...n
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1778
|
+
...n
|
|
1779
|
+
}, i = $n({
|
|
1780
|
+
url: `${ir}${e}`,
|
|
1781
|
+
options: r
|
|
1782
|
+
}), a = await (await fetch(i.url, i.options)).json();
|
|
1783
|
+
return er(a), a;
|
|
1774
1784
|
}
|
|
1775
1785
|
async function rr(e, t, n = {}) {
|
|
1776
|
-
|
|
1786
|
+
let r = {
|
|
1777
1787
|
method: "POST",
|
|
1778
1788
|
body: JSON.stringify(t),
|
|
1779
|
-
...n
|
|
1780
|
-
|
|
1781
|
-
|
|
1789
|
+
...n
|
|
1790
|
+
}, i = $n({
|
|
1791
|
+
url: `${ir}${e}`,
|
|
1792
|
+
options: r
|
|
1793
|
+
});
|
|
1794
|
+
return (await fetch(i.url, i.options)).blob();
|
|
1782
1795
|
}
|
|
1783
1796
|
var q = {
|
|
1784
1797
|
get: tr,
|
package/dist/hooks/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as e, d as t, f as n, l as r, p as i, u as a } from "../entry-
|
|
1
|
+
import { c as e, d as t, f as n, l as r, p as i, u as a } from "../entry-DJl-GbES.js";
|
|
2
2
|
export { r as useDictionary, i as useFetch, a as useRoute, t as useRouter, n as useTable, e as useUser };
|
package/dist/utils/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as e, S as t, _ as n, b as r, v as i, x as a, y as o } from "../entry-
|
|
1
|
+
import { A as e, S as t, _ as n, b as r, v as i, x as a, y as o } from "../entry-DJl-GbES.js";
|
|
2
2
|
export { n as baseUrl, i as formatDate, o as omit, t as request, e as tempToRender, r as uniq, a as uniqBy };
|
package/dist/vep-ui.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as e, D as t, E as n, M as r, O as i, T as a, a as o, g as s, h as c, i as l, j as u, k as d, m as f, n as p, o as m, r as h, s as g, t as _, w as v } from "./entry-
|
|
1
|
+
import { C as e, D as t, E as n, M as r, O as i, T as a, a as o, g as s, h as c, i as l, j as u, k as d, m as f, n as p, o as m, r as h, s as g, t as _, w as v } from "./entry-DJl-GbES.js";
|
|
2
2
|
export { r as UiCard, v as UiDescriptions, e as UiDialog, t as UiEditor, d as UiFilter, i as UiForm, a as UiInfiniteScroll, f as UiStaffSelect, u as UiTable, n as UiTree, m as UiUpload, s as WcUtils, o as YcApproval, c as YcMessage, l as YcPageAgent, h as default, h as ycPlugin, _ as getHostVue, g as hooks, p as setHostVue };
|