代码优化
This commit is contained in:
parent
9ec44744da
commit
0511da6b4e
|
|
@ -685,12 +685,12 @@ export default {
|
||||||
this.mapEcharts.on('click', function (params) {
|
this.mapEcharts.on('click', function (params) {
|
||||||
if (params.data && params.data.a > 0) {
|
if (params.data && params.data.a > 0) {
|
||||||
_this.$router.push({
|
_this.$router.push({
|
||||||
path: '/home-new',
|
path: '/bigScrap/home-new',
|
||||||
query: { province: params.data.name, location: params.data.value },
|
query: { province: params.data.name, location: params.data.value },
|
||||||
})
|
})
|
||||||
} else if (params.region.count > 0) {
|
} else if (params.region.count > 0) {
|
||||||
_this.$router.push({
|
_this.$router.push({
|
||||||
path: '/home-new',
|
path: '/bigScrap/home-new',
|
||||||
query: { province: params.name, location: params.region.value },
|
query: { province: params.name, location: params.region.value },
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue