widget.qw 1.0.43 → 1.0.44

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.
@@ -20670,7 +20670,8 @@ const _sfc_main$1 = {
20670
20670
  data2.selectedNodeId = modelValue.value;
20671
20671
  } else {
20672
20672
  data2.selectedNodes = [];
20673
- modelValue.value.forEach((id) => __async(this, null, function* () {
20673
+ let ids = modelValue.value || [];
20674
+ ids.forEach((id) => __async(this, null, function* () {
20674
20675
  let params = {};
20675
20676
  params.id = id;
20676
20677
  params.isReturnParent = false;
@@ -20673,7 +20673,8 @@ var __async = (__this, __arguments, generator) => {
20673
20673
  data2.selectedNodeId = modelValue.value;
20674
20674
  } else {
20675
20675
  data2.selectedNodes = [];
20676
- modelValue.value.forEach((id) => __async(this, null, function* () {
20676
+ let ids = modelValue.value || [];
20677
+ ids.forEach((id) => __async(this, null, function* () {
20677
20678
  let params = {};
20678
20679
  params.id = id;
20679
20680
  params.isReturnParent = false;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "widget.qw",
3
3
  "private": false,
4
- "version": "1.0.43",
4
+ "version": "1.0.44",
5
5
  "description": "marqstree Vue3组件库",
6
6
  "main": "build/widget.qw.es.js",
7
7
  "keywords": [
@@ -111,7 +111,8 @@ watch(() => JSON.stringify(modelValue.value), async (n, o) => {
111
111
  data.selectedNodeId = modelValue.value
112
112
  } else {
113
113
  data.selectedNodes = []
114
- modelValue.value.forEach(async(id) => {
114
+ let ids = modelValue.value || []
115
+ ids.forEach(async(id) => {
115
116
  let params = {}
116
117
  params.id = id
117
118
  params.isReturnParent = false