src/components/index.vue
@@ -45,7 +45,7 @@ <right ref="Right" /> <leftpanel ref="Left" /> <menupanel /> <bottommenu /> <bottommenu ref="bottommenu" /> <setting v-if="showSetting" /> <qycharts v-if="$store.state.qyEchartsShow" /> </div> @@ -236,6 +236,9 @@ this.$store.commit("showHistory", false); }, }, beforeDestroy(){ this.$refs.bottommenu.switchMenu(0); }, }; </script> <style scoped>