Pārlūkot izejas kodu

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

dukai 3 gadi atpakaļ
vecāks
revīzija
0651dc6118
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  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)