From 39c8b288ec8294e026459dfb1955f0bbc49ebb52 Mon Sep 17 00:00:00 2001
From: WXL (wul) <wl_5969728@163.com>
Date: 星期一, 19 十月 2026 11:10:40 +0800
Subject: [PATCH] 测试完成

---
 src/App.vue |   43 +++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 41 insertions(+), 2 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index 2bf66ab..fe7e9a8 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -2,7 +2,16 @@
   <div id="app">
     <router-view />
     <theme-picker />
-    <Assistant />
+    <!-- <Assistant v-if="routertf" /> -->
+    <Assistant
+      v-if="Assvite"
+      :initial-position="{ x: 50, y: 200 }"
+      :auto-hide="false"
+      :hide-delay="3000"
+      primary-color="#1890ff"
+    />
+    <!-- 涓磋繎瓒呮椂浠诲姟鐧诲綍鍚庡脊绐楋紙浠呮櫙瀹�/鏂板崕涓ゅ鏈烘瀯瑙﹀彂锛� -->
+    <!-- <NearTimeoutDialog v-if="Assvite" /> -->
   </div>
 </template>
 
@@ -13,7 +22,30 @@
   name: "App",
   components: {
     ThemePicker,
-    Assistant: () => import("./components/Assistant"), //寮傛缁勪欢鍔犺浇鏂瑰紡
+    Assistant: () => import("./components/Assistant"),
+    NearTimeoutDialog: () => import("./components/NearTimeoutDialog"),
+  },
+  data() {
+    return {
+      Assvite: true,
+    };
+  },
+  created() {
+    // 鍒濆鍖栧垽鏂�
+    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() {
     return {
@@ -30,6 +62,13 @@
 };
 </script>
 <style scoped>
+#app {
+  overflow-y: scroll;
+  height: 100vh;
+  background: #f8fafd;
+  /* font-family: "Microsoft YaHei", Arial, Helvetica, sans-serif, "瀹嬩綋"; */
+  font-family: "Hiragino Sans GB";
+}
 #app .theme-picker {
   display: none;
 }

--
Gitblit v1.9.3