@ebiz/designer-components 0.0.24 → 0.0.25

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/dist/index.mjs CHANGED
@@ -114463,6 +114463,18 @@ dm.interceptors.response.use(
114463
114463
  }
114464
114464
  );
114465
114465
  let $D = {
114466
+ 0: "/appdata/select",
114467
+ 1: "/appdata/detailData",
114468
+ 2: "/appdata/plugin",
114469
+ 3: "/appdata/addData",
114470
+ 4: "/appdata/addDatas",
114471
+ 5: "/appdata/updateData",
114472
+ 6: "/appdata/updateDatas",
114473
+ 7: "/appdata/delData",
114474
+ 8: "/appdata/delDatas",
114475
+ 9: "/api/appdata/link/select",
114476
+ 10: "/api/file/upload",
114477
+ // 文件上传API
114466
114478
  MULTIPLE_DATA_SEARCH: "/appdata/select",
114467
114479
  DETAILS_DATA: "/appdata/detailData",
114468
114480
  INTERFACE_PLUGIN: "/appdata/plugin",
@@ -114488,7 +114500,7 @@ const Pa = {
114488
114500
  * @example
114489
114501
  */
114490
114502
  fetch: (e = {}, t = {}, n = "") => {
114491
- n || (n = $D[t.apiType]);
114503
+ n || (n = $D[t.apiType + ""]);
114492
114504
  const { apiId: r = "", ...a } = t, o = {
114493
114505
  // 默认列表查询配置
114494
114506
  headers: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ebiz/designer-components",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -129,6 +129,18 @@ axiosInstance.interceptors.response.use(
129
129
  )
130
130
 
131
131
  let apiMap = {
132
+ "0": '/appdata/select',
133
+ "1": '/appdata/detailData',
134
+ "2": '/appdata/plugin',
135
+ "3": '/appdata/addData',
136
+ "4": '/appdata/addDatas',
137
+ "5": '/appdata/updateData',
138
+ "6": '/appdata/updateDatas',
139
+ "7": '/appdata/delData',
140
+ "8": '/appdata/delDatas',
141
+ "9": '/api/appdata/link/select',
142
+ "10": '/api/file/upload', // 文件上传API
143
+
132
144
  MULTIPLE_DATA_SEARCH: '/appdata/select',
133
145
  DETAILS_DATA: '/appdata/detailData',
134
146
  INTERFACE_PLUGIN: '/appdata/plugin',
@@ -158,7 +170,7 @@ const dataService = {
158
170
  */
159
171
  fetch: (params = {}, apiConfig = {}, url = '') => {
160
172
  if (!url) {
161
- url = apiMap[apiConfig.apiType]
173
+ url = apiMap[apiConfig.apiType+'']
162
174
  }
163
175
 
164
176
  const { apiId = '', ...restConfig } = apiConfig