From 5b372e9989eca7a24991a2c0c2306b8cfd9a58c9 Mon Sep 17 00:00:00 2001 From: BTMuli Date: Sun, 14 Dec 2025 18:00:08 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20hide=E6=97=B6=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E7=AA=97=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index a733e1af..b84548c9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -36,9 +36,9 @@ import { computed, onMounted, onUnmounted, ref } from "vue"; import { useRouter } from "vue-router"; const router = useRouter(); -const { theme, needResize, deviceInfo, isLogin, userDir, buildTime, closeToTray } = storeToRefs(useAppStore()); +const { theme, needResize, deviceInfo, isLogin, userDir, buildTime, closeToTray } = + storeToRefs(useAppStore()); const { uid, briefInfo, account, cookie } = storeToRefs(useUserStore()); -const appStore = useAppStore(); const isMain = ref(false); const vuetifyTheme = computed(() => (theme.value === "dark" ? "dark" : "light")); @@ -104,6 +104,7 @@ onUnmounted(() => { async function handleDpListen(event: Event): Promise { const windowGet = new webviewWindow.WebviewWindow("TeyvatGuide"); if (await windowGet.isMinimized()) await windowGet.unminimize(); + if (!(await windowGet.isVisible())) await windowGet.show(); await windowGet.setFocus(); const payload = await parseDeepLink(event.payload); if (payload === false) {