zhanghui 2 лет назад
Родитель
Сommit
535278b574
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      orderPages/bookService/index.vue

+ 5 - 5
orderPages/bookService/index.vue

@@ -331,13 +331,13 @@
 					storeId:this.store.storeId,
 					date:date
 				}).then((res) => {
-					console.log(666666666677777777777,bindPickerChange)
+
 					this.serviceTeacherList = res.data.data;
-					this.serviceTeacherList[0].select = true
-					this.getServicePersonUrl(this.serviceTeacherList);
+					if (this.serviceTeacherList.length > 0){
+						this.serviceTeacherList[0].select = true
+						this.getServicePersonUrl(this.serviceTeacherList);
+					}
 					if (bindPickerChange){
-						console.log(888888888888888,bindPickerChange)
-
 						if (this.orderParam.childService.length === 0){
 							this.selectServiceObject(this.serviceObjectList[0])
 						}else {