From 179dd8f18d13b66b98ce43d977c565020bf5e6ba Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Mon, 20 Jan 2025 13:40:22 +0800 Subject: [PATCH] =?UTF-8?q?story#6071=EF=BC=8C=E9=80=89=E6=8B=A9=E5=B0=8F?= =?UTF-8?q?=E4=BF=AE=E8=BD=A6=E6=97=B6=E9=9C=80=E6=B8=85=E9=99=A4=E5=8E=9F?= =?UTF-8?q?=E6=9C=AC=E7=9A=84=E6=8B=96=E8=BD=A6=E6=9C=8D=E5=8A=A1=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/index/vehicleAdd.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/index/vehicleAdd.vue b/src/views/index/vehicleAdd.vue index 70203f94..3d0d3bb4 100644 --- a/src/views/index/vehicleAdd.vue +++ b/src/views/index/vehicleAdd.vue @@ -525,7 +525,7 @@ export default { this.$toast('车辆类型不能为空') return } - if(this.selectedOption.includes(1)){//选择小修车时需清除原本的拖车服务类型 + if(this.selectedOption?.length==0 && this.selectedOption.includes(1)){//选择小修车时需清除原本的拖车服务类型 let data=this.oldSupplierServiceList.filter(item => item.name ==='拖车服务') this.serviceIds = this.serviceIds.filter(item => !data[0].children.some(obj => obj.id === item)); }