wui-components-v2 1.0.79 → 1.0.80

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.
@@ -318,7 +318,13 @@ async function getSelectData(data: any, relationID: string) {
318
318
  })
319
319
  selectData.value[relationID].loading = true
320
320
  const res = await selectDatas(relationID, codes)
321
- pageConfig.value.entity.arrayMap[relationID] = res.entities
321
+ if (pageConfig.value.entity) {
322
+ pageConfig.value.entity.arrayMap[relationID] = res.entities
323
+ }
324
+ else {
325
+ pageConfig.value.entity = { arrayMap: { [relationID]: res.entities }, code: '', fieldMap: {} }
326
+ }
327
+
322
328
  selectData.value[relationID].loading = false
323
329
  }
324
330
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wui-components-v2",
3
- "version": "1.0.79",
3
+ "version": "1.0.80",
4
4
  "description": "wui 组件库",
5
5
  "author": "wgxshh",
6
6
  "license": "MIT",