yc-vep-ui 0.6.6 → 0.6.7

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,10 +1737,11 @@ 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() {
1740
+ function $n(e = {}) {
1741
1741
  return new Headers({
1742
1742
  "Content-Type": "application/json",
1743
- token: localStorage.getItem("TOKEN") || ""
1743
+ token: localStorage.getItem("TOKEN") || "",
1744
+ ...e
1744
1745
  });
1745
1746
  }
1746
1747
  function er(e) {
@@ -1758,26 +1759,26 @@ async function tr(e, t, n = {}) {
1758
1759
  e && (r = `${r}?${e}`);
1759
1760
  }
1760
1761
  let i = await (await fetch(r, {
1761
- method: "GET",
1762
- headers: Object.assign({}, $n(), n.headers || {})
1762
+ headers: $n(n.headers || {}),
1763
+ method: "GET"
1763
1764
  })).json();
1764
1765
  return er(i), i;
1765
1766
  }
1766
1767
  async function nr(e, t, n = {}) {
1767
1768
  let r = await (await fetch(`${ir}${e}`, {
1769
+ headers: $n(n.headers || {}),
1768
1770
  method: "POST",
1769
1771
  body: JSON.stringify(t),
1770
- ...n,
1771
- headers: Object.assign({}, $n(), n.headers || {})
1772
+ ...n
1772
1773
  })).json();
1773
1774
  return er(r), r;
1774
1775
  }
1775
1776
  async function rr(e, t, n = {}) {
1776
1777
  return (await fetch(`${ir}${e}`, {
1778
+ headers: $n(n.headers || {}),
1777
1779
  method: "POST",
1778
1780
  body: JSON.stringify(t),
1779
- ...n,
1780
- headers: Object.assign({}, $n(), n.headers || {})
1781
+ ...n
1781
1782
  })).blob();
1782
1783
  }
1783
1784
  var q = {
@@ -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-Be8DtE2X.js";
1
+ import { c as e, d as t, f as n, l as r, p as i, u as a } from "../entry-DObu8awA.js";
2
2
  export { r as useDictionary, i as useFetch, a as useRoute, t as useRouter, n as useTable, e as useUser };
@@ -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-Be8DtE2X.js";
1
+ import { A as e, S as t, _ as n, b as r, v as i, x as a, y as o } from "../entry-DObu8awA.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-Be8DtE2X.js";
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-DObu8awA.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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yc-vep-ui",
3
- "version": "0.6.6",
3
+ "version": "0.6.7",
4
4
  "type": "module",
5
5
  "description": "基于 Vue 3 + Element Plus 的企业级 UI 组件库",
6
6
  "keywords": [