w-ui-v1 1.1.41 → 1.1.43

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "w-ui-v1",
3
- "version": "1.1.41",
3
+ "version": "1.1.43",
4
4
  "description": "w-ui",
5
5
  "author": "wgxshh",
6
6
  "license": "ISC",
@@ -1,9 +1,21 @@
1
1
  import request from '../http.js'
2
2
  // 列表页面详细配置
3
- export function pageConfig(sourceId: string) {
4
- return request({
3
+ export async function pageConfig(sourceId: string) {
4
+ const res = await request({
5
5
  url: `/v3/ltmpl/config?sourceId=${sourceId}`,
6
6
  })
7
+ const {ltmplConfig={}}=res.data || {}
8
+ const {extDisplayConfig={}}=ltmplConfig
9
+ return { //配置结构调整
10
+ ...res,
11
+ data:{
12
+ ...res?.data || {},
13
+ ltmplConfig:{
14
+ ...ltmplConfig,
15
+ ...extDisplayConfig
16
+ }
17
+ }
18
+ }
7
19
  }
8
20
 
9
21
  // 获取报表页面详细配置
package/w-menu/w-menu.vue CHANGED
@@ -140,7 +140,7 @@
140
140
  })
141
141
  return {
142
142
  ...node,
143
- iconPath:(icon as any)?.path
143
+ iconPath:icon?.path
144
144
  }
145
145
  })
146
146
  }