From cd5080b2e3d84c274f90bee762348be3f89e3c29 Mon Sep 17 00:00:00 2001
From: guonan <guonan201020@163.com>
Date: 星期四, 29 五月 2025 18:03:20 +0800
Subject: [PATCH] 修改

---
 src/views/nav/Navigation.vue |   40 +++++++---------------------------------
 1 files changed, 7 insertions(+), 33 deletions(-)

diff --git a/src/views/nav/Navigation.vue b/src/views/nav/Navigation.vue
index 7685fd7..5fe09b1 100644
--- a/src/views/nav/Navigation.vue
+++ b/src/views/nav/Navigation.vue
@@ -1,23 +1,6 @@
 <template>
   <div class="navigation">
-    <div class="navigation-contents" v-show="!simBtn">
-      <div
-        class="navigation-item bg1"
-        :class="{ 'bg1-active': currentIndexs == 1 }"
-        @click="handleClickHome(1)"
-      >
-        缁煎悎灞曠ず
-      </div>
-      <div
-        class="navigation-item bg2"
-        :class="{ 'bg2-active': currentIndexs == 2 }"
-        @click="handleClickHome(2)"
-        style="margin-left: 15%"
-      >
-        妯℃嫙浠跨湡
-      </div>
-    </div>
-    <div class="navigation-content" v-show="simBtn">
+    <div class="navigation-content">
       <div
         class="navigation-item bg1"
         :class="{ 'bg1-active': currentIndex == 1 }"
@@ -54,9 +37,8 @@
 <script setup>
 import { useRouter } from "vue-router";
 import { useSimStore } from "@/store/simulation";
-import { ref,watch} from "vue";
+import { ref, watch } from "vue";
 
-const simBtn = ref(false);
 const currentIndexs = ref(1);
 const router = useRouter();
 const simStore = useSimStore();
@@ -90,21 +72,13 @@
   router.push(routes[index]);
 };
 watch(
-    () => simStore.backToHome,
-    (newValue) => {
-        if (newValue) {
-            simBtn.value = false;
-            simStore.setBackToHome(false);
-        }
+  () => simStore.backToHome,
+  (newValue) => {
+    if (newValue) {
+      simStore.setBackToHome(false);
     }
-);
-const handleClickHome = (index) => {
-  if (index === 1) {
-    router.push("/");
-  } else {
-    simBtn.value = true;
   }
-};
+);
 </script>
 
 <style lang="less" scoped>

--
Gitblit v1.9.3