Browse Source

Merge branch 'master' of http://182.92.174.150:3000/tiegu/czo

dukai 3 years ago
parent
commit
0651dc6118
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/components/deptTreeChoice/index.vue

+ 1 - 0
src/components/deptTreeChoice/index.vue

@@ -89,6 +89,7 @@
 				this.deptIds = ids.filter((item) => this.defaultChecked.includes(item))
 			},
 			getAllIds(parents) {
+				if (!parents) return []
 				let arrs = []
 				parents.forEach((item) => {
 					arrs.push(item.id)