bl-common-vue3 3.8.128 → 3.8.129

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bl-common-vue3",
3
- "version": "3.8.128",
3
+ "version": "3.8.129",
4
4
  "main": "index.js",
5
5
  "module": "index.js",
6
6
  "description": "bailing vue3 common components lib",
@@ -613,7 +613,7 @@ export default defineComponent({
613
613
  slotIcon: "buildIcon",
614
614
  isLeaf: false,
615
615
  });
616
- if (!(props.showCompany && villageList.length > 1)) {
616
+ if (totalVillageCount === 1) {
617
617
  state.expandedKeys.push(`${village.key}_buildLevel_${build.id}`);
618
618
  }
619
619
  }
@@ -873,7 +873,7 @@ export default defineComponent({
873
873
  slotIcon: "buildIcon",
874
874
  isLeaf: false,
875
875
  });
876
- if (buildId == build.id && !(state.expandedKeys || []).includes(`${v.key}_buildLevel_${build.id}`)) {
876
+ if (buildId == build.id && state.expandedKeys.includes(v.key) && !state.expandedKeys.includes(`${v.key}_buildLevel_${build.id}`)) {
877
877
  state.expandedKeys.push(`${v.key}_buildLevel_${build.id}`)
878
878
  }
879
879
  }