From 0c7cc21d8a51e164dd2fe4ce73ab566b3a9081a9 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期四, 26 三月 2026 10:25:05 +0800
Subject: [PATCH] 测试完成

---
 src/App.vue |   35 ++++++++++++++++++++++++-----------
 1 files changed, 24 insertions(+), 11 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index 897936f..83f295c 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -2,7 +2,14 @@
   <div id="app">
     <router-view />
     <theme-picker />
-    <Assistant v-if="routertf" />
+    <!-- <Assistant v-if="routertf" /> -->
+    <Assistant
+      v-if="Assvite"
+      :initial-position="{ x: 50, y: 200 }"
+      :auto-hide="false"
+      :hide-delay="3000"
+      primary-color="#1890ff"
+    />
   </div>
 </template>
 
@@ -13,22 +20,28 @@
   name: "App",
   components: {
     ThemePicker,
-    Assistant: () => import("./components/Assistant"), //寮傛缁勪欢鍔犺浇鏂瑰紡
+    Assistant: () => import("./components/Assistant"),
   },
   data() {
     return {
-      routers: this.$route.path.split("/").pop(),
-      routertf: true,
+      Assvite: true,
     };
   },
   created() {
-    console.log(this.routers);
-    if (
-      this.routers == "outsideChainxj" ||
-      this.routers == "outsideChain" ||
-      this.routers == "outsideChainwt"
-    ) {
-      this.routertf = false;
+    // 鍒濆鍖栧垽鏂�
+    this.checkAndUpdateAssvite();
+  },
+  watch: {
+    // 鐩戝惉璺敱鍙樺寲
+    '$route'(to, from) {
+      this.checkAndUpdateAssvite();
+    }
+  },
+  methods: {
+    checkAndUpdateAssvite() {
+      const isLoginPage = window.location.pathname.includes("/login");
+      this.Assvite = !isLoginPage;
+      console.log('褰撳墠璺敱:', this.$route.path, '鏄惁鐧诲綍椤�:', isLoginPage, '鏄剧ず鎮诞鐞�:', this.Assvite);
     }
   },
   metaInfo() {

--
Gitblit v1.9.3