udxcms 1.0.31 → 1.0.32

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/dist/index.js +10 -10
  2. package/package.json +1 -1
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-10-10 17:01:10
5
+ * @LastEditTime: 2025-10-11 14:12: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
  */
@@ -65,15 +65,15 @@ export function init({ Vue, router, store, Parent, onComponentsRegistered, onRou
65
65
  setEventCenter(events);
66
66
  }
67
67
  // 这里可以添加 UDX CMS 的初始化逻辑
68
- console.log('UDX CMS 初始化');
69
- console.log('传入的 store 实例:', store);
70
- console.log('cmsStore 内容:', cmsStore);
68
+ // console.log('UDX CMS 初始化');
69
+ // console.log('传入的 store 实例:', store);
70
+ // console.log('cmsStore 内容:', cmsStore);
71
71
  // 注册组件到 Vue 实例
72
72
  // cmsComponents 已经通过上面的 `export * as cmsComponents from './components'` 导入
73
73
  // 所以这里可以直接使用
74
74
  if (Vue) {
75
75
  for (const [name, component] of Object.entries(cmsComponents)) {
76
- console.log(`注册组件: ${name}`);
76
+ // console.log(`注册组件: ${name}`);
77
77
  Vue.component(name, component);
78
78
  }
79
79
  // 调用外部注册回调
@@ -92,11 +92,11 @@ export function init({ Vue, router, store, Parent, onComponentsRegistered, onRou
92
92
  onRoutesRegistered && onRoutesRegistered();
93
93
  }
94
94
  if (store) {
95
- console.log('注册模块:', cmsStore);
96
- console.log('cmsStore 键列表:', Object.keys(cmsStore));
95
+ // console.log('注册模块:', cmsStore);
96
+ // console.log('cmsStore 键列表:', Object.keys(cmsStore));
97
97
  Object.keys(cmsStore).map(v => {
98
- console.log(`处理模块: ${v}`);
99
- console.log(`模块内容:`, cmsStore[v]);
98
+ // console.log(`处理模块: ${v}`);
99
+ // console.log(`模块内容:`, cmsStore[v]);
100
100
  // 确保模块有正确的结构
101
101
  const moduleConfig = cmsStore[v];
102
102
  if (moduleConfig && typeof moduleConfig === 'object') {
@@ -105,7 +105,7 @@ export function init({ Vue, router, store, Parent, onComponentsRegistered, onRou
105
105
  console.log(`实际模块:`, actualModule);
106
106
  console.log(`模块结构 - state:`, !!actualModule.state, 'mutations:', !!actualModule.mutations, 'actions:', !!actualModule.actions);
107
107
  if (actualModule.state || actualModule.mutations || actualModule.actions) {
108
- console.log(`注册模块 ${v} 成功`);
108
+ // console.log(`注册模块 ${v} 成功`);
109
109
  // 使用原始模块名,不进行小写转换
110
110
  const moduleName = v === 'CmsStore' ? 'cmsstore' : v;
111
111
  // TODO失去了数据响应式
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "udxcms",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "description": "cms submodule",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",