From dde6c337e23c1b953f2d9bc8ba21f8197eb448c8 Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Fri, 14 Mar 2025 14:23:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E6=89=8B=E8=BD=A6=E4=BA=A4=E6=98=93?= =?UTF-8?q?=EF=BC=8C=E5=AE=A1=E6=A0=B8=E4=B8=8D=E6=8E=89=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/secondHandCar/carSource.vue | 20 +++++++++++--------- src/views/secondHandCar/wantBuy.vue | 20 +++++++++++--------- 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/src/views/secondHandCar/carSource.vue b/src/views/secondHandCar/carSource.vue index 9eedced7..e414c98a 100644 --- a/src/views/secondHandCar/carSource.vue +++ b/src/views/secondHandCar/carSource.vue @@ -399,15 +399,17 @@ export default { sessionStorage.setItem('vehicleAnglePhotoList','') sessionStorage.setItem('otherImgSrcList','') sessionStorage.setItem('otherImgSrc','') - this.$toast('发布成功') - if(this.isWebFunc()){ - setTimeout(()=>{ - this.closeParentDialog() - },1000) - }else{ - setTimeout(()=>{ - this.$router.push({ name: "mineRelease",query:{activeTab : 1}}) - },1000) + if(this.type==1){ + this.$toast('发布成功') + if(this.isWebFunc()){ + setTimeout(()=>{ + this.closeParentDialog() + },1000) + }else{ + setTimeout(()=>{ + this.$router.push({ name: "mineRelease",query:{activeTab : 1}}) + },1000) + } } }else{ this.$toast(res.msg) diff --git a/src/views/secondHandCar/wantBuy.vue b/src/views/secondHandCar/wantBuy.vue index 4998d4c7..3fc26ef5 100644 --- a/src/views/secondHandCar/wantBuy.vue +++ b/src/views/secondHandCar/wantBuy.vue @@ -251,15 +251,17 @@ export default { ...this.form, }) if(res.code == 200 && !res.msg){ - this.$toast('发布成功') - if(this.isWebFunc()){ - setTimeout(()=>{ - this.closeParentDialog() - },1000) - }else{ - setTimeout(()=>{ - this.$router.push({ name: "mineRelease",query:{activeTab : 1}}) - },1000) + if(this.type==1){ + this.$toast('发布成功') + if(this.isWebFunc()){ + setTimeout(()=>{ + this.closeParentDialog() + },1000) + }else{ + setTimeout(()=>{ + this.$router.push({ name: "mineRelease",query:{activeTab : 1}}) + },1000) + } } }else{ this.$toast(res.msg)