Explorar o código

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

dukai %!s(int64=3) %!d(string=hai) anos
pai
achega
0651dc6118
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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)