udxcms 1.0.21 → 1.0.23

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,7 +1,7 @@
1
1
  <!--
2
2
  * @Author: Lewis
3
3
  * @Date: 2020-11-16 14:38:46
4
- * @LastEditTime: 2025-09-24 20:45:24
4
+ * @LastEditTime: 2025-09-25 09:53:50
5
5
  * @LastEditors: lewis lewis@everylink.ai
6
6
  * @Description: update logoIcon
7
7
  -->
@@ -137,6 +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.state.common.commonConf = this.commonConf
140
141
  this.$store.commit('setCommonConf', this.commonConf)
141
142
  }
142
143
  // this.componentId = 'header_dex' || componentName || 'header_b'
@@ -1,7 +1,7 @@
1
1
  <!--
2
2
  * @Author: Sneed
3
3
  * @Date: 2020-12-22 21:38:13
4
- * @LastEditTime: 2025-09-23 18:48:39
4
+ * @LastEditTime: 2025-09-24 22:48:02
5
5
  * @LastEditors: lewis lewis@everylink.ai
6
6
  * @Description:
7
7
  -->
@@ -95,7 +95,6 @@
95
95
  <script>
96
96
  import _ from 'lodash';
97
97
  import conf from '../../config/index'
98
- import config from '@/config/index'
99
98
  import { isInIsWalletApp } from './../../utils'
100
99
  import {unwrapJSONStr} from "../../utils/parse";
101
100
  import themeMixin from "../../mixins/themeMixin";
@@ -125,7 +124,7 @@ export default {
125
124
  // },
126
125
  titleType: {
127
126
  type: String,
128
- default: config.siteTitle || 'logo'
127
+ default: 'logo'
129
128
  },
130
129
  logoPosition: {
131
130
  type: String,
@@ -170,7 +169,7 @@ export default {
170
169
  return this.iconColor
171
170
  },
172
171
  logoSrc() {
173
- let path = config.sitePath + 'site/logo/' + window.location.hostname
172
+ let path = conf.sitePath + 'site/logo/' + window.location.hostname
174
173
  return path
175
174
  },
176
175
  showMobileHeader() {
@@ -105,15 +105,15 @@ export { default as Wiki } from './cmsComponents/wiki/Wiki.vue'
105
105
  export { default as ChainNetH5Work } from './h5Components/ChainNetH5Work.vue'
106
106
  export { default as DateH5 } from './h5Components/DateH5.vue'
107
107
  export { default as GoHistory } from './h5Components/GoHistory.vue'
108
- export { default as LanguageH5 } from './h5Components/Language.vue'
109
- export { default as ListSelectH5 } from './h5Components/ListSelectH5.vue'
110
- export { default as MenuH5 } from './h5Components/Menu.vue'
111
- export { default as NavCenterH5 } from './h5Components/NavCenter.vue'
112
- export { default as NoRecordH5 } from './h5Components/NoRecord.vue'
113
- export { default as NoticeModuleH5 } from './h5Components/NoticeModule.vue'
114
- export { default as OtherNavH5 } from './h5Components/OtherNav.vue'
115
- export { default as PopListH5 } from './h5Components/PopList.vue'
116
- export { default as SearchInputH5 } from './h5Components/SearchInput.vue'
117
- export { default as SvgCircleH5 } from './h5Components/SvgCircle.vue'
118
- export { default as TopH5 } from './h5Components/Top.vue'
119
- export { default as walletconnectBottomH5 } from './h5Components/walletconnectBottom.vue'
108
+ // export { default as LanguageH5 } from './h5Components/Language.vue'
109
+ // export { default as ListSelectH5 } from './h5Components/ListSelectH5.vue'
110
+ export { default as Menu } from './h5Components/Menu.vue'
111
+ export { default as NavCenter } from './h5Components/NavCenter.vue'
112
+ export { default as NoRecord } from './h5Components/NoRecord.vue'
113
+ export { default as NoticeModule } from './h5Components/NoticeModule.vue'
114
+ export { default as OtherNav } from './h5Components/OtherNav.vue'
115
+ export { default as PopList } from './h5Components/PopList.vue'
116
+ export { default as SearchInput } from './h5Components/SearchInput.vue'
117
+ export { default as SvgCircle } from './h5Components/SvgCircle.vue'
118
+ export { default as Top } from './h5Components/Top.vue'
119
+ export { default as walletconnectBottom } from './h5Components/walletconnectBottom.vue'
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * @Author: lewis lewis@everylink.ai
3
3
  * @Date: 2025-09-17 10:50:27
4
4
  * @LastEditors: lewis lewis@everylink.ai
5
- * @LastEditTime: 2025-09-24 18:56:47
5
+ * @LastEditTime: 2025-09-25 10:24:36
6
6
  * @FilePath: /localTools/Users/apple/web-front/web-front/src/common_modules/cms-submodule/index.js
7
7
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
8
8
  */
@@ -39,13 +39,13 @@ export * from './utils';
39
39
  export * from './api';
40
40
  export { localStorageConstant };
41
41
  // 添加详细的调试信息
42
- console.log('=== CMS模块调试信息 ===');
43
- console.log('cmsStore 原始结构:', cmsStore);
44
- console.log('cmsStore 键:', Object.keys(cmsStore));
45
- Object.keys(cmsStore).forEach(key => {
46
- console.log(`cmsStore.${key}:`, cmsStore[key]);
47
- console.log(`cmsStore.${key} 类型:`, typeof cmsStore[key]);
48
- });
42
+ // console.log('=== CMS模块调试信息 ===');
43
+ // console.log('cmsStore 原始结构:', cmsStore);
44
+ // console.log('cmsStore 键:', Object.keys(cmsStore));
45
+ // Object.keys(cmsStore).forEach(key => {
46
+ // console.log(`cmsStore.${key}:`, cmsStore[key]);
47
+ // console.log(`cmsStore.${key} 类型:`, typeof cmsStore[key]);
48
+ // });
49
49
  /**
50
50
  * 初始化 UDX CMS 相关功能
51
51
  * 此方法可用于执行 UDX CMS 的初始化逻辑
@@ -73,6 +73,7 @@ export function init({ Vue, router, store, Parent, onComponentsRegistered, onRou
73
73
  // 所以这里可以直接使用
74
74
  if (Vue) {
75
75
  for (const [name, component] of Object.entries(cmsComponents)) {
76
+ console.log(`注册组件: ${name}`);
76
77
  Vue.component(name, component);
77
78
  }
78
79
  // 调用外部注册回调
@@ -110,11 +111,11 @@ export function init({ Vue, router, store, Parent, onComponentsRegistered, onRou
110
111
  console.log('将 CmsStore 直接合并到根 store');
111
112
  // 1. 直接修改根 state 来添加 cms 命名空间
112
113
  if (actualModule.state) {
113
- if (!store.state.cms) {
114
- store.state.cms = {};
114
+ if (!store.state.cmsstore) {
115
+ store.state.cmsstore = {};
115
116
  }
116
117
  Object.keys(actualModule.state).forEach(key => {
117
- store.state.cms[key] = actualModule.state[key];
118
+ store.state.cmsstore[key] = actualModule.state[key];
118
119
  });
119
120
  }
120
121
  // 2. 直接修改 store._mutations 来添加根级别 mutations
@@ -128,7 +129,7 @@ export function init({ Vue, router, store, Parent, onComponentsRegistered, onRou
128
129
  // 添加 mutation 处理器
129
130
  store._mutations[mutationName].push(function (payload) {
130
131
  // 获取当前模块状态
131
- const moduleState = store.state.cms || actualModule.state;
132
+ const moduleState = store.state.cmsstore || actualModule.state;
132
133
  // 调用原始 mutation
133
134
  return actualModule.mutations[mutationName](moduleState, payload);
134
135
  });
@@ -147,7 +148,7 @@ export function init({ Vue, router, store, Parent, onComponentsRegistered, onRou
147
148
  store._actions[actionName].push(function (payload) {
148
149
  // 创建正确的 context
149
150
  const context = {
150
- state: store.state.cms || actualModule.state,
151
+ state: store.state.cmsstore || actualModule.state,
151
152
  rootState: store.state,
152
153
  commit: store.commit,
153
154
  dispatch: store.dispatch,
@@ -164,7 +165,7 @@ export function init({ Vue, router, store, Parent, onComponentsRegistered, onRou
164
165
  console.log('添加根级别 getters:', Object.keys(actualModule.getters));
165
166
  Object.keys(actualModule.getters).forEach(getterName => {
166
167
  store._wrappedGetters[getterName] = function () {
167
- const moduleState = store.state.cms || actualModule.state;
168
+ const moduleState = store.state.cmsstore || actualModule.state;
168
169
  return actualModule.getters[getterName](moduleState, store.getters, store.state, store.getters);
169
170
  };
170
171
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "udxcms",
3
- "version": "1.0.21",
3
+ "version": "1.0.23",
4
4
  "description": "cms submodule",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",