From dd9d8f453e8082226ecb41ecf76fd7d498b41c86 Mon Sep 17 00:00:00 2001 From: zhoulinf <2507241354@qq.com> Date: Wed, 5 Aug 2026 20:21:20 +0800 Subject: [PATCH] =?UTF-8?q?CRM=5F26-08-05#story#9126,=E8=BD=A6=E8=BE=86?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E3=80=81=E6=9C=8D=E5=8A=A1=E5=95=86=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=B3=BB=E7=BB=9F=E9=9C=80=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index/vehicleAdd.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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);