fix: project-query和metric preview里添加图表后顶部菜单高亮状态改变

This commit is contained in:
陈劲松
2020-02-11 11:30:56 +08:00
parent 8a63c091e1
commit ad78583ccc
5 changed files with 20 additions and 11 deletions

View File

@@ -122,6 +122,7 @@
</template>
<script>
import bus from '../../libs/bus';
export default {
name: "Header",
data() {
@@ -424,6 +425,10 @@
// 刷新后有高亮
let activePath = this.$route.path.slice(1);
this.activeIndex = activePath;
bus.$on("menu-change", (menu) => {
console.info(menu);
this.activeIndex = menu;
});
},
computed: {
projectListReloadWatch() {
@@ -433,8 +438,8 @@
return this.$store.state.assetDcList;
},
getAssetDcData() {
return this.$store.state.assetData
},
return this.$store.state.assetData;
}
},
watch: {
getAssetDcData: {