From f20a554bdb24e9dfde9dc6a69d78595944f61d15 Mon Sep 17 00:00:00 2001
From: mark <mark18340872469@163.com>
Date: 星期二, 25 十月 2022 14:53:57 +0800
Subject: [PATCH] 设备管理 样式调整

---
 src/views/connectUs/index.vue |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)

diff --git a/src/views/connectUs/index.vue b/src/views/connectUs/index.vue
index 2b60e9e..020d65b 100644
--- a/src/views/connectUs/index.vue
+++ b/src/views/connectUs/index.vue
@@ -8,7 +8,7 @@
           class="navItem"
           :key="index"
           :class="{ active: activeNav == index }"
-          @click="activeNav = index"
+          @click="jump(index)"
         >
           {{ item }}
         </div>
@@ -31,6 +31,17 @@
   components: {
     consult,
   },
+  methods: {
+    jump(index) {
+      this.activeNav = index;
+      if (index == 0) {
+        this.$router.push("/");
+      }
+      if (index == 2) {
+        window.open("http://smartai.com/about");
+      }
+    },
+  },
 };
 </script>
 

--
Gitblit v1.8.0