From bd6b0405a89e66f80ca777599b035d4ea7f3ea6a Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期二, 23 八月 2022 23:09:19 +0800
Subject: [PATCH] 隐藏主页和大屏菜单页

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

diff --git a/src/views/connectUs/index.vue b/src/views/connectUs/index.vue
index 2b60e9e..d788d04 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,20 @@
   components: {
     consult,
   },
+  methods: {
+    jump(index) {
+      this.activeNav = index;
+      if (index == 0) {
+        this.$router.push("/");
+      }
+      if (index == 2) {
+        window.open("http://smartai.com/about");
+      }
+      if (index == 4) {
+        window.open("http://smartai.com/consult");
+      }
+    },
+  },
 };
 </script>
 

--
Gitblit v1.8.0