From 7191db186e369db523ded376973f0d20378926c4 Mon Sep 17 00:00:00 2001
From: zhongrj <646384940@qq.com>
Date: Fri, 29 Nov 2024 14:03:10 +0800
Subject: [PATCH] tab 值异常问题解决

---
 src/views/device/index.vue |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/views/device/index.vue b/src/views/device/index.vue
index b823084..35f066c 100644
--- a/src/views/device/index.vue
+++ b/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();
       }
     },

--
Gitblit v1.9.3