@indfnd/common-mobile 1.0.47 → 1.0.49

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/CHANGELOG.md CHANGED
@@ -2,6 +2,22 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.0.49](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.48...v1.0.49) (2026-03-02)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * 处理系统配置问题 ([8ebccef](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/8ebccef5dc7f987158f05d3ec4fd554e10150227))
11
+
12
+ ### [1.0.48](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.47...v1.0.48) (2026-03-02)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * 配置存入缓存 ([208fb40](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/208fb40d1923b511cfb89ecdc87bb5a71f43744d))
18
+ * 配置存入缓存 ([0e7e734](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/0e7e734429102e71589481bcb49b7784240d6f12))
19
+ * 配置存入缓存 ([8637cbe](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/commit/8637cbe1ee35a1666288e095261494476f7df565))
20
+
5
21
  ### [1.0.47](http://git.inspur.com/imp-ec/ind-front/ind-common-mobile-front/compare/v1.0.46...v1.0.47) (2026-03-02)
6
22
 
7
23
 
@@ -3,7 +3,7 @@ import { getQuarterNum, getHalfYearNum, formatDate, useConfig, getLocalStorage,
3
3
  import Vue$1 from "vue";
4
4
  import { DropdownMenu as DropdownMenu$1, DropdownItem as DropdownItem$1, Message, LoadingBar, Spin } from "view-design";
5
5
  const name = "@indfnd/common-mobile";
6
- const version$1 = "1.0.46";
6
+ const version$1 = "1.0.48";
7
7
  const author = "huxuetong";
8
8
  const publishConfig = {
9
9
  registry: "https://registry.npmjs.org/"
@@ -23756,8 +23756,19 @@ const __vue2_script$m = {
23756
23756
  },
23757
23757
  computed: {
23758
23758
  changeUI() {
23759
- var _a, _b;
23760
- return ((_b = (_a = this.$config) == null ? void 0 : _a.systemDefaultConfig) == null ? void 0 : _b.changeUI) || "0";
23759
+ var _a;
23760
+ const storedValue = localStorage.getItem("systemDefaultConfig");
23761
+ if (!storedValue || typeof storedValue !== "string") {
23762
+ return "0";
23763
+ }
23764
+ let systemDefaultConfig;
23765
+ try {
23766
+ systemDefaultConfig = JSON.parse(storedValue);
23767
+ } catch (e) {
23768
+ console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:", e.message);
23769
+ return "0";
23770
+ }
23771
+ return ((_a = systemDefaultConfig == null ? void 0 : systemDefaultConfig.systemDefaultConfig) == null ? void 0 : _a.changeUI) || "0";
23761
23772
  }
23762
23773
  }
23763
23774
  };
@@ -23874,8 +23885,19 @@ const __vue2_script$j = {
23874
23885
  },
23875
23886
  computed: {
23876
23887
  changeUI() {
23877
- var _a, _b;
23878
- return ((_b = (_a = this.$config) == null ? void 0 : _a.systemDefaultConfig) == null ? void 0 : _b.changeUI) || "0";
23888
+ var _a;
23889
+ const storedValue = localStorage.getItem("systemDefaultConfig");
23890
+ if (!storedValue || typeof storedValue !== "string") {
23891
+ return "0";
23892
+ }
23893
+ let systemDefaultConfig;
23894
+ try {
23895
+ systemDefaultConfig = JSON.parse(storedValue);
23896
+ } catch (e) {
23897
+ console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:", e.message);
23898
+ return "0";
23899
+ }
23900
+ return ((_a = systemDefaultConfig == null ? void 0 : systemDefaultConfig.systemDefaultConfig) == null ? void 0 : _a.changeUI) || "0";
23879
23901
  }
23880
23902
  }
23881
23903
  };
@@ -29688,8 +29710,19 @@ const __vue2_script$b = {
29688
29710
  },
29689
29711
  computed: {
29690
29712
  changeUI() {
29691
- var _a, _b;
29692
- return ((_b = (_a = this.$config) == null ? void 0 : _a.systemDefaultConfig) == null ? void 0 : _b.changeUI) || "0";
29713
+ var _a;
29714
+ const storedValue = localStorage.getItem("systemDefaultConfig");
29715
+ if (!storedValue || typeof storedValue !== "string") {
29716
+ return "0";
29717
+ }
29718
+ let systemDefaultConfig;
29719
+ try {
29720
+ systemDefaultConfig = JSON.parse(storedValue);
29721
+ } catch (e) {
29722
+ console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:", e.message);
29723
+ return "0";
29724
+ }
29725
+ return ((_a = systemDefaultConfig == null ? void 0 : systemDefaultConfig.systemDefaultConfig) == null ? void 0 : _a.changeUI) || "0";
29693
29726
  }
29694
29727
  }
29695
29728
  };
@@ -30350,8 +30383,19 @@ const __vue2_script$7 = {
30350
30383
  },
30351
30384
  computed: {
30352
30385
  changeUI() {
30353
- var _a, _b;
30354
- return ((_b = (_a = this.$config) == null ? void 0 : _a.systemDefaultConfig) == null ? void 0 : _b.changeUI) || "0";
30386
+ var _a;
30387
+ const storedValue = localStorage.getItem("systemDefaultConfig");
30388
+ if (!storedValue || typeof storedValue !== "string") {
30389
+ return "0";
30390
+ }
30391
+ let systemDefaultConfig;
30392
+ try {
30393
+ systemDefaultConfig = JSON.parse(storedValue);
30394
+ } catch (e) {
30395
+ console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:", e.message);
30396
+ return "0";
30397
+ }
30398
+ return ((_a = systemDefaultConfig == null ? void 0 : systemDefaultConfig.systemDefaultConfig) == null ? void 0 : _a.changeUI) || "0";
30355
30399
  }
30356
30400
  }
30357
30401
  };
@@ -31217,9 +31261,20 @@ const __vue2_script = {
31217
31261
  },
31218
31262
  computed: {
31219
31263
  getIcon() {
31220
- var _a, _b;
31264
+ var _a;
31221
31265
  const dynamicKey = `icon${this.type}`;
31222
- const configArray = (_b = (_a = this.$config) == null ? void 0 : _a.systemDefaultConfig) == null ? void 0 : _b[dynamicKey];
31266
+ const storedValue = localStorage.getItem("systemDefaultConfig");
31267
+ if (!storedValue || typeof storedValue !== "string") {
31268
+ return "";
31269
+ }
31270
+ let systemDefaultConfig;
31271
+ try {
31272
+ systemDefaultConfig = JSON.parse(storedValue);
31273
+ } catch (e) {
31274
+ console.error("\u274C JSON \u89E3\u6790\u5931\u8D25:", e.message);
31275
+ return "";
31276
+ }
31277
+ const configArray = (_a = systemDefaultConfig == null ? void 0 : systemDefaultConfig.systemDefaultConfig) == null ? void 0 : _a[dynamicKey];
31223
31278
  try {
31224
31279
  if (!Array.isArray(configArray)) {
31225
31280
  console.error("\u914D\u7F6E\u4E0D\u662F\u6570\u7EC4:", configArray);
@@ -33516,13 +33571,24 @@ const install = function(Vue2, opts = { theme: "" }) {
33516
33571
  });
33517
33572
  ret.systemDefaultConfig = { ...ret.systemDefaultConfig, ...temp };
33518
33573
  }
33519
- const assignConfig = Object.assign({}, Vue2.prototype.$config || {}, ret);
33520
- Vue2.prototype.$config = assignConfig;
33521
- setTimeout(() => {
33522
- if (ret.systemDefaultConfig.changeUI == "1") {
33523
- doChangeTheme(theme + " " + ret.systemDefaultConfig.theme);
33574
+ Vue2.prototype.$config = _.merge({}, Vue2.prototype.$config || {}, ret);
33575
+ const savedConfig = localStorage.getItem("systemDefaultConfig");
33576
+ if (savedConfig) {
33577
+ const parsedConfig = JSON.parse(savedConfig);
33578
+ if (!_.isEqual(parsedConfig, ret)) {
33579
+ localStorage.removeItem("systemDefaultConfig");
33580
+ localStorage.setItem("systemDefaultConfig", JSON.stringify(ret));
33581
+ console.log("\u914D\u7F6E\u4E0D\u540C\uFF0C\u5DF2\u66F4\u65B0");
33582
+ } else {
33583
+ console.log("\u914D\u7F6E\u76F8\u540C\uFF0C\u65E0\u9700\u66F4\u65B0");
33524
33584
  }
33525
- }, 0);
33585
+ } else {
33586
+ localStorage.setItem("systemDefaultConfig", JSON.stringify(ret));
33587
+ console.log("\u9996\u6B21\u5B58\u50A8\u914D\u7F6E");
33588
+ }
33589
+ if (ret.systemDefaultConfig.changeUI == "1") {
33590
+ doChangeTheme(theme + " " + ret.systemDefaultConfig.theme);
33591
+ }
33526
33592
  return ret;
33527
33593
  } catch (error) {
33528
33594
  console.error("\u89E3\u6790 settingInfo \u5931\u8D25:", error);