haiwei-ui 1.4.3 → 1.4.5
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
|
@@ -300,6 +300,11 @@ export default {
|
|
|
300
300
|
...mapState('app/user', { token: 'token' }),
|
|
301
301
|
uploadUrl() {
|
|
302
302
|
let baseURL = this.$http?.axios?.defaults?.baseURL || window.__HAIWEI_API_BASE_URL__ || '/api'
|
|
303
|
+
|
|
304
|
+
console.log('this.$http?.axios?.defaults?.baseURL', this.$http?.axios?.defaults?.baseURL);
|
|
305
|
+
console.log('window.__HAIWEI_API_BASE_URL__', window.__HAIWEI_API_BASE_URL__);
|
|
306
|
+
console.log('baseURL', baseURL);
|
|
307
|
+
|
|
303
308
|
if (!baseURL.endsWith('/')) {
|
|
304
309
|
baseURL += '/'
|
|
305
310
|
}
|
|
@@ -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
|
},
|