hs-admin-ui 15.0.5 → 15.0.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.
package/dist/index.js.gz CHANGED
Binary file
package/dist/index.mjs CHANGED
@@ -103465,7 +103465,7 @@ let CurrentRouter = ref$1();
103465
103465
  const ENCRYPT_KEY = "configkey";
103466
103466
  const encrypt$1 = (data) => {
103467
103467
  if (!data) return data;
103468
- if (IS_DEV.value == true || false) {
103468
+ if (IS_DEV.value == true) {
103469
103469
  return _$3.cloneDeep(data);
103470
103470
  }
103471
103471
  try {
@@ -103476,7 +103476,7 @@ const encrypt$1 = (data) => {
103476
103476
  };
103477
103477
  const decrypt$1 = (str) => {
103478
103478
  if (!str) return str;
103479
- if (IS_DEV.value == true || false) {
103479
+ if (IS_DEV.value == true) {
103480
103480
  return str;
103481
103481
  }
103482
103482
  try {
@@ -103493,8 +103493,7 @@ const encryptionTool = {
103493
103493
  const Local = {
103494
103494
  // 查看 v2.4.3版本更新日志
103495
103495
  setKey(key) {
103496
- const npmName = NEXT_NAME.value ? NEXT_NAME.value : "hs-admin-ui";
103497
- return `${npmName}:${key}`;
103496
+ return `${NEXT_NAME.value}:${key}`;
103498
103497
  },
103499
103498
  // 设置永久缓存
103500
103499
  set(key, val) {
@@ -103552,8 +103551,7 @@ class SystemStore {
103552
103551
  }
103553
103552
  /** 查看 v2.4.3版本更新日志 */
103554
103553
  setKey(key) {
103555
- const npmName = NEXT_NAME.value ? NEXT_NAME.value : "hs-admin-ui";
103556
- return `${npmName}:${key}`;
103554
+ return `${NEXT_NAME.value}:${key}`;
103557
103555
  }
103558
103556
  /** 设置永久缓存 */
103559
103557
  set(key, value) {
@@ -103568,9 +103566,8 @@ class SystemStore {
103568
103566
  }
103569
103567
  getUserByProject(projectCode2) {
103570
103568
  var _a2;
103571
- const npmName = NEXT_NAME.value ? NEXT_NAME.value : "hs-admin-ui";
103572
103569
  const project = projectCode2 || ((_a2 = getUrlParams()) == null ? void 0 : _a2.project);
103573
- const name2 = project ? `hs-${project}-web` : npmName;
103570
+ const name2 = project ? `hs-${project}-web` : NEXT_NAME.value;
103574
103571
  return this.store.getItem(`${name2}:userInfo`).then((res) => decrypt$1(res));
103575
103572
  }
103576
103573
  /** 移除永久缓存 */
@@ -103605,8 +103602,7 @@ class CustomeStore {
103605
103602
  }
103606
103603
  /** 查看 v2.4.3版本更新日志 */
103607
103604
  setKey(key) {
103608
- const npmName = NEXT_NAME.value ? NEXT_NAME.value : "hs-admin-ui";
103609
- return `${npmName}:${key}`;
103605
+ return `${NEXT_NAME.value}:${key}`;
103610
103606
  }
103611
103607
  /** 设置永久缓存 */
103612
103608
  set(key, value) {
@@ -103626,7 +103622,6 @@ class CustomeStore {
103626
103622
  }
103627
103623
  }
103628
103624
  function getConfig$b({ mid, id, uid: uid2 }, str = "") {
103629
- const npmName = NEXT_NAME.value ? NEXT_NAME.value : "hs-admin-ui";
103630
103625
  return systemStore.get("userInfo").then(async (userInfo) => {
103631
103626
  const store = localforage.createInstance({
103632
103627
  driver: [localforage.INDEXEDDB, localforage.WEBSQL, localforage.LOCALSTORAGE],
@@ -103634,14 +103629,13 @@ function getConfig$b({ mid, id, uid: uid2 }, str = "") {
103634
103629
  version: 1,
103635
103630
  description: "配置系统"
103636
103631
  });
103637
- const name2 = str ? `${npmName}:${str}` : `${npmName}:${id}`;
103632
+ const name2 = str ? `${NEXT_NAME.value}:${str}` : `${NEXT_NAME.value}:${id}`;
103638
103633
  const data = await store.getItem(name2);
103639
103634
  if (!data) return null;
103640
103635
  return decrypt$1(data);
103641
103636
  });
103642
103637
  }
103643
103638
  function setConfig$4({ mid, id, uid: uid2 }, val, str = "") {
103644
- const npmName = NEXT_NAME.value ? NEXT_NAME.value : "hs-admin-ui";
103645
103639
  return systemStore.get("userInfo").then((userInfo) => {
103646
103640
  const DbName = `${uid2 || userInfo.id}_${mid}`;
103647
103641
  const store = localforage.createInstance({
@@ -103650,7 +103644,7 @@ function setConfig$4({ mid, id, uid: uid2 }, val, str = "") {
103650
103644
  version: 1,
103651
103645
  description: "配置系统"
103652
103646
  });
103653
- const name2 = str ? `${npmName}:${str}` : `${npmName}:${id}`;
103647
+ const name2 = str ? `${NEXT_NAME.value}:${str}` : `${NEXT_NAME.value}:${id}`;
103654
103648
  return store.setItem(name2, encrypt$1(val));
103655
103649
  });
103656
103650
  }
@@ -103666,7 +103660,6 @@ function removeConfig(mid, uid2) {
103666
103660
  });
103667
103661
  }
103668
103662
  function getColumnWidthConfig({ table_id, uid: uid2 }) {
103669
- const npmName = NEXT_NAME.value ? NEXT_NAME.value : "hs-admin-ui";
103670
103663
  return systemStore.get("userInfo").then(async (userInfo) => {
103671
103664
  const store = localforage.createInstance({
103672
103665
  driver: [localforage.INDEXEDDB, localforage.WEBSQL, localforage.LOCALSTORAGE],
@@ -103674,14 +103667,13 @@ function getColumnWidthConfig({ table_id, uid: uid2 }) {
103674
103667
  version: 1,
103675
103668
  description: "配置系统列宽属性"
103676
103669
  });
103677
- const name2 = `${npmName}:${table_id}`;
103670
+ const name2 = `${NEXT_NAME.value}:${table_id}`;
103678
103671
  const data = await store.getItem(name2);
103679
103672
  if (!data) return null;
103680
103673
  return decrypt$1(data);
103681
103674
  });
103682
103675
  }
103683
103676
  function setColumnWidthConfig({ table_id, uid: uid2 }, val) {
103684
- const npmName = NEXT_NAME.value ? NEXT_NAME.value : "hs-admin-ui";
103685
103677
  return systemStore.get("userInfo").then((userInfo) => {
103686
103678
  const DbName = `${uid2 || userInfo.id}`;
103687
103679
  const store = localforage.createInstance({
@@ -103690,7 +103682,7 @@ function setColumnWidthConfig({ table_id, uid: uid2 }, val) {
103690
103682
  version: 1,
103691
103683
  description: "配置系统列宽属性"
103692
103684
  });
103693
- const name2 = `${npmName}:${table_id}`;
103685
+ const name2 = `${NEXT_NAME.value}:${table_id}`;
103694
103686
  return store.setItem(name2, encrypt$1(val));
103695
103687
  });
103696
103688
  }
@@ -103758,8 +103750,7 @@ function getDictListByMid(id, uid2) {
103758
103750
  version: 1,
103759
103751
  description: "配置系统"
103760
103752
  });
103761
- const npmName = NEXT_NAME.value ? NEXT_NAME.value : "hs-admin-ui";
103762
- const data1 = await store.getItem(`${npmName}:auth`);
103753
+ const data1 = await store.getItem(`${NEXT_NAME.value}:auth`);
103763
103754
  if (!data1) return {};
103764
103755
  const data = decrypt$1(data1);
103765
103756
  return data.dict_functions.map((i2) => {
@@ -103834,8 +103825,7 @@ function getAuthFieldsByMid(id, uid2) {
103834
103825
  version: 1,
103835
103826
  description: "配置系统"
103836
103827
  });
103837
- const npmName = NEXT_NAME.value ? NEXT_NAME.value : "hs-admin-ui";
103838
- const data1 = await store.getItem(`${npmName}:auth`);
103828
+ const data1 = await store.getItem(`${NEXT_NAME.value}:auth`);
103839
103829
  if (!data1) return {};
103840
103830
  const data = decrypt$1(data1);
103841
103831
  return data.field_functions;
@@ -103928,7 +103918,7 @@ const errorHandlerInterceptor = [
103928
103918
  case 2e3:
103929
103919
  if (!isError$6) {
103930
103920
  isError$6 = true;
103931
- if (IS_DEV.value || false) {
103921
+ if (IS_DEV.value) {
103932
103922
  ElMessageBox.alert(data.msg, "提示", {
103933
103923
  confirmButtonText: "确定",
103934
103924
  callback: async () => {
@@ -158788,7 +158778,7 @@ async function getLoadData$1(data) {
158788
158778
  }
158789
158779
  const form = await getSearchForm(config3);
158790
158780
  const tables = (await getTableDatas(config3)).filter(Boolean);
158791
- if (IS_DEV.value == true || false) {
158781
+ if (IS_DEV.value == true) {
158792
158782
  getTableDataType(tables);
158793
158783
  }
158794
158784
  return {
@@ -158814,7 +158804,7 @@ function getFormData(result1) {
158814
158804
  i2.config = setPropertyData(i2.config);
158815
158805
  return i2;
158816
158806
  })) || [];
158817
- if (IS_DEV.value == true || false) {
158807
+ if (IS_DEV.value == true) {
158818
158808
  console.debug(getFormDataType(result));
158819
158809
  }
158820
158810
  return {
package/dist/index.mjs.gz CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hs-admin-ui",
3
- "version": "15.0.5",
3
+ "version": "15.0.7",
4
4
  "description": "vue3 + typescript5 + vite5 的框架",
5
5
  "author": "wgd",
6
6
  "private": false,