src/views/device/index.vue
@@ -49,12 +49,15 @@ return ids.join(','); }, }, created(){ // 默认打开机场页面 }, methods: { handleClick(tab, event) { if (tab.index == 0) { if (tab.index == 1) { this.$refs.fly.init(); } if (tab.index == 1) { if (tab.index == 0) { this.$refs.airport.init(); } },