udxcms 1.0.17 → 1.0.18

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.
@@ -1,8 +1,8 @@
1
1
  <!--
2
2
  * @Author: Lewis
3
3
  * @Date: 2020-11-16 14:38:46
4
- * @LastEditTime: 2022-08-24 00:11:53
5
- * @LastEditors: Lewis
4
+ * @LastEditTime: 2025-09-24 20:45:24
5
+ * @LastEditors: lewis lewis@everylink.ai
6
6
  * @Description: update logoIcon
7
7
  -->
8
8
 
@@ -137,7 +137,7 @@ const header = {
137
137
  let componentName = this.commonConf.indexHeader || ''
138
138
  this.showUnit = this.commonConf.showUnit || ''
139
139
  if (Object.keys(this.commonConf).length) {
140
- this.$store.commit('CmsStore/setCommonConf', this.commonConf)
140
+ this.$store.commit('setCommonConf', this.commonConf)
141
141
  }
142
142
  // this.componentId = 'header_dex' || componentName || 'header_b'
143
143
  this.componentId = componentName || 'header_b'
package/dist/index.js CHANGED
@@ -93,6 +93,8 @@ export function init({ Vue, router, store, Parent, onComponentsRegistered, onRou
93
93
  // 检查是否是默认导出
94
94
  const actualModule = moduleConfig.default || moduleConfig;
95
95
  if (actualModule.state || actualModule.mutations || actualModule.actions) {
96
+ // preserveState: true 表示在注册模块时保留现有状态。
97
+ // 当注册一个新的模块时,如果该模块路径下已经存在状态,设置此属性为 true 可以确保这些状态不会被清除。
96
98
  store.registerModule(v, actualModule, { preserveState: true });
97
99
  }
98
100
  else {
@@ -1,60 +1,21 @@
1
- declare const _default: {
2
- state: {
3
- countryList: any[];
4
- currencyList: any[];
5
- commonConf: {};
6
- coins: any[];
7
- location: {};
8
- explorerSets: {};
9
- backRouteName: string;
10
- exchange: {};
11
- exchangeRate: string;
12
- exchangeTimer: any;
13
- exchangesetCurrent: string;
14
- exchangeTime: number;
15
- refreshExchangeTime: number;
16
- apiCache: {};
17
- menuChange: number;
18
- menuShow: boolean;
19
- backRouteParams: {};
20
- routeUrl: string;
21
- };
22
- getters: {
23
- isbridgeChainNeedChange: (state: any, getters: any, rootState: any) => (chainId: any) => boolean;
24
- };
25
- mutations: {
26
- setMenuChange(state: any): void;
27
- setMenuShow(state: any, menuShow: any): void;
28
- setCountry(state: any, countryList: any): void;
29
- setCommonConf(state: any, commonConf: any): void;
30
- setCurrencyList(state: any, currencyList: any): void;
31
- setExplorerSets(state: any, explorerSets: any): void;
32
- setLocation(state: any, location: any): void;
33
- setRouteUrl(state: any, routeUrl: any): void;
34
- setBackRouteName(state: any, backRouteName: any): void;
35
- setBackRouteParams(state: any, backRouteParams: any): void;
36
- setExchange(state: any, exchangeObj: any): void;
37
- setApiCache(state: any, { type, apiDoc }: {
38
- type: any;
39
- apiDoc: any;
40
- }): void;
41
- };
42
- actions: {
43
- getCurrencyFunc({ state, commit, dispatch }: {
44
- state: any;
45
- commit: any;
46
- dispatch: any;
47
- }, currency: any): Promise<unknown>;
48
- getCurrency({ state, commit, dispatch }: {
49
- state: any;
50
- commit: any;
51
- dispatch: any;
52
- }, currency: any): Promise<unknown>;
53
- getCurrencyDataByTime({ state, commit, dispatch }: {
54
- state: any;
55
- commit: any;
56
- dispatch: any;
57
- }, currency: any): void;
58
- };
59
- };
1
+ declare const _default: import("vuex").Store<{
2
+ countryList: any[];
3
+ currencyList: any[];
4
+ commonConf: {};
5
+ coins: any[];
6
+ location: {};
7
+ explorerSets: {};
8
+ backRouteName: string;
9
+ exchange: {};
10
+ exchangeRate: string;
11
+ exchangeTimer: any;
12
+ exchangesetCurrent: string;
13
+ exchangeTime: number;
14
+ refreshExchangeTime: number;
15
+ apiCache: {};
16
+ menuChange: number;
17
+ menuShow: boolean;
18
+ backRouteParams: {};
19
+ routeUrl: string;
20
+ }>;
60
21
  export default _default;
@@ -13,10 +13,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
13
13
  * @Author:
14
14
  * @Date: 2021-07-30 10:46:1
15
15
  * @LastEditors: lewis lewis@everylink.ai
16
- * @LastEditTime: 2025-09-22 18:59:24
16
+ * @LastEditTime: 2025-09-24 20:45:28
17
17
  */
18
18
  import { getSignleSymbolPrice } from '../api/common';
19
- export default {
19
+ import Vuex from 'vuex';
20
+ export default new Vuex.Store({
20
21
  state: {
21
22
  countryList: [],
22
23
  currencyList: [],
@@ -196,4 +197,4 @@ export default {
196
197
  }
197
198
  }
198
199
  },
199
- };
200
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "udxcms",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "cms submodule",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,6 +20,8 @@
20
20
  "clipboard-copy": "^4.0.1",
21
21
  "ethers": "^5.4.0",
22
22
  "dayjs": "^1.11.2",
23
- "bignumber.js": "^9.0.2"
23
+ "bignumber.js": "^9.0.2",
24
+ "vue-router": "3.6.5",
25
+ "vuex": "3.6.2"
24
26
  }
25
27
  }