Commit 1bbd71df by heshihao

feat: 修改界面跳转

parent d9c60622
...@@ -185,8 +185,8 @@ export default { ...@@ -185,8 +185,8 @@ export default {
} }
.portrait_main { .portrait_main {
position: relative; position: relative;
margin: 0 0 0 30px; // margin: 0 0 0 30px;
width: calc(100% - 30px); width: calc(100%);
height: 100%; height: 100%;
background: #fff; background: #fff;
} }
......
...@@ -337,10 +337,7 @@ export default { ...@@ -337,10 +337,7 @@ export default {
}, },
goTrack() { goTrack() {
this.$router.push({ this.$router.push({
name: "track", name: "analyse",
query: {
district: this.district == "晋城市" ? "" : this.district,
},
}); });
}, },
initChartMap() { initChartMap() {
......
...@@ -71,6 +71,11 @@ export default { ...@@ -71,6 +71,11 @@ export default {
this.activeIndex = this.$route.name; this.activeIndex = this.$route.name;
} }
}, },
watch: {
$route() {
this.activeIndex = this.$route.name;
},
},
methods: { methods: {
handleSelect(key) { handleSelect(key) {
this.activeIndex = key; this.activeIndex = key;
......
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