二手车交易,返回按钮路径

This commit is contained in:
2025-03-14 14:18:15 +08:00
parent b349671004
commit 3ea4168b87
3 changed files with 27 additions and 7 deletions

View File

@ -1,7 +1,6 @@
<template>
<div class="wrap" >
<div class="headerWrap">
<!-- <div v-if="isWebFunc()" style="opacity: 0;" class="back"></div>-->
<img class="back" @click="backHandle" src="@/assets/secondHandCar/back.png" />
<span>免责声明</span>
<div style="opacity: 0;" class="back"></div>
@ -35,7 +34,7 @@ export default {
this.h5GoBack()
}else{
if(this.$route.query.type == 1){
this.$router.push({ name: 'carSource',query: {type:1},params: {
this.$router.push({ name: 'carSource',query: {type:1,homePage:this.$route.query.homePage},params: {
form: this.$route.params.form,
radio:this.$route.params.radio ,
areaName:this.$route.params.areaName ,
@ -47,7 +46,7 @@ export default {
} })
}else{
this.$router.push({ name: 'wantBuy',query: {type:1},params: { form: this.$route.params.form,radio:this.$route.params.radio } })
this.$router.push({ name: 'wantBuy',query: {type:1,homePage:this.$route.query.homePage},params: { form: this.$route.params.form,radio:this.$route.params.radio } })
}
}
},