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)