@unizhen/ui 0.1.39 → 0.1.41

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.
Files changed (2) hide show
  1. package/lib/ui.js +5 -5
  2. package/package.json +1 -1
package/lib/ui.js CHANGED
@@ -7064,7 +7064,7 @@ var $p = /*#__PURE__*/ U(Jp, [["render", Qp]]), em = d({
7064
7064
  addAndEdit: async (e, t, n, r, i = 0, a) => {
7065
7065
  o.value = e, m.value = !0, s.value = i, d.value = n, y.value = r, u.value = !0, t().then(({ form: t, data: n }) => {
7066
7066
  let r = Y(`tables_cache_${e}`, !1);
7067
- r ? c.value = r : c.value = n, v.value = t, x.value = a, m.value = !1;
7067
+ r && i === 0 ? c.value = r : c.value = n, v.value = t, x.value = a, m.value = !1;
7068
7068
  }).catch(() => null);
7069
7069
  },
7070
7070
  getFormValues: () => a.value?.getValues()
@@ -7134,10 +7134,10 @@ var $p = /*#__PURE__*/ U(Jp, [["render", Qp]]), em = d({
7134
7134
  },
7135
7135
  doCacheToStore: () => {
7136
7136
  let e = a.value?.getValues();
7137
- if (x.value) J(`tables_cache_${o.value}`, e, 0), S();
7137
+ if (x.value) J(`tables_cache_${o.value}`, e, "1 Hours"), S();
7138
7138
  else {
7139
7139
  let t = l.value.link.split(".")[0];
7140
- J(`tables_cache_link_${t}`, e, 0), S();
7140
+ J(`tables_cache_link_${t}`, e, "1 Hours"), S();
7141
7141
  }
7142
7142
  }
7143
7143
  };
@@ -7245,7 +7245,7 @@ function im(e, t, s, u, d, f) {
7245
7245
  default: N(() => [c(k(e.$t("Common.cancel")), 1)]),
7246
7246
  _: 1
7247
7247
  }, 8, ["loading", "onClick"]),
7248
- e.formStatus === 0 || e.formStatus === 1 ? (x(), n(_, {
7248
+ e.formStatus === 0 ? (x(), n(_, {
7249
7249
  key: 0,
7250
7250
  type: "success",
7251
7251
  loading: e.spinShow,
@@ -7998,7 +7998,7 @@ function Xm(e, t, n) {
7998
7998
  }
7999
7999
  //#endregion
8000
8000
  //#region package.json
8001
- var Zm = "0.1.39", Qm;
8001
+ var Zm = "0.1.41", Qm;
8002
8002
  async function $m() {
8003
8003
  let e = await fetch(`${window.location.protocol}//${window.location.host}`, {
8004
8004
  method: "HEAD",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unizhen/ui",
3
- "version": "0.1.39",
3
+ "version": "0.1.41",
4
4
  "author": {
5
5
  "name": "Donovan"
6
6
  },