diff --git a/subpkg/property/chosseCompany.vue b/subpkg/property/chosseCompany.vue index b24f648..c5335ae 100644 --- a/subpkg/property/chosseCompany.vue +++ b/subpkg/property/chosseCompany.vue @@ -185,7 +185,7 @@ // 13043214321 this.dataList = res.data.vehicleContract this.carList = res.data.vehicleRentCars - this.checked = [this.carList[0].car_id] + this.checked = [this.carList[0].car_id] || '' this.dataList.cars_info ? this.dataList.cars_info = JSON.parse(this.dataList.cars_info).license : "" if (this.dataList.status == 3) { @@ -275,7 +275,7 @@ contractApi({ id: this.dataList.id, - car_id: this.checked[0]?.car_id ? this.checked[0].car_id : "" + car_id: this.checked[0] || "" }).then(res => { this.navTo('/subpkg/property/success') })