diff --git a/src/views/index/vehicleAdd.vue b/src/views/index/vehicleAdd.vue index 2bbfb1a8..fc8508a4 100644 --- a/src/views/index/vehicleAdd.vue +++ b/src/views/index/vehicleAdd.vue @@ -723,6 +723,18 @@ export default { }, methods:{ async initPage() { + // 重置图片槽位,避免 keep-alive 缓存复用时残留上一辆车的图片 + this.vehicleLicenseFrontList = [] + this.vehicleLicenseBackList = [] + this.vehicleLicenseCarPhotoList = [] + this.vehicleFrontPhotoList = [] + this.insurancePictureFiles = [] + this.vehicleLicenseFront = '' + this.vehicleLicenseBack = '' + this.vehicleLicenseCarPhoto = '' + this.vehicleFrontPhoto = '' + this.insurancePicturePhoto = '' + this.vehicleLicenseBackOcrFlag = false this.id=this.$route.params?.id this.approvalForm.supplierId=this.$route.params?.supplierId const urlParams = new URLSearchParams(window.location.search);