haiwei-ui 1.4.2 → 1.4.4

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": "haiwei-ui",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "description": "HaiWei前端组件库",
5
5
  "author": "Eric",
6
6
  "license": "ISC",
@@ -69,7 +69,12 @@ const cacheManager = {
69
69
  _getEnumApiRequest(moduleCode, enumName, libName = '') {
70
70
  // 默认使用全局$api,如果不存在则返回空数组
71
71
  if (typeof $api !== 'undefined' && $api.admin && $api.admin.tool && $api.admin.tool.enumSelect) {
72
- return $api.admin.tool.enumSelect({ moduleCode, enumName, libName })
72
+ // 构建请求参数,libName为空时不传递
73
+ const params = { moduleCode, enumName }
74
+ if (libName && libName.trim() !== '') {
75
+ params.libName = libName
76
+ }
77
+ return $api.admin.tool.enumSelect(params)
73
78
  }
74
79
  return Promise.resolve([])
75
80
  },