haiwei-ui 1.4.3 → 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
|
@@ -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
|
-
|
|
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
|
},
|