Commit ec61b877 authored by 高滢's avatar 高滢

我的服务刷新 路由

parent 1ffb630c
......@@ -424,10 +424,10 @@ export default {
this.$router.push({
name: 'mobilityServices',
params: {
start:this.travelServicesForm.start,
start: this.travelServicesForm.start,
end: this.travelServicesForm.end,
stratLocation:this.travelServicesForm.stratLocation,
endLocation:this.travelServicesForm.endLocation
stratLocation: this.travelServicesForm.stratLocation,
endLocation: this.travelServicesForm.endLocation
}
})
},
......
......@@ -111,7 +111,7 @@ export default {
},
// 查看详情
goServiceDetais(item) {
this.$router.push({ name: 'myServiceDetails', params: { serviceId: item.id }})
this.$router.push({ name: 'myServiceDetails', query: { serviceId: item.id }})
},
// 模糊查询
querySearch() {
......
......@@ -70,7 +70,7 @@ export default {
}
},
created() {
this.serviceId = this.$route.params.serviceId
this.serviceId = this.$route.query.serviceId
console.log(typeof this.serviceId)
this.getServiceDetails()
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment