From 0b871175b2a09cdc9348d79eb3d27a97515af4c9 Mon Sep 17 00:00:00 2001 From: imsyy Date: Thu, 14 Mar 2024 11:57:29 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E6=A0=8F=E5=BC=82=E5=B8=B8=E6=B6=88=E5=A4=B1?= =?UTF-8?q?=20#142?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 5 ----- src/components/Nav/MainNav.vue | 13 ++++++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 874718a0..cc359271 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,6 @@ > 一个简约的音乐播放器 -> [!CAUTION] -> -> # 因收到网易云官方警告函,本项目从即日起停止一切新功能开发,同时无限期停止维护,感谢您的理解和支持。 -> ## 在线预览页面也将同步下线 - ![main](/screenshots/SPlayer.jpg) ## 说明 diff --git a/src/components/Nav/MainNav.vue b/src/components/Nav/MainNav.vue index 884e23ca..2cf35372 100644 --- a/src/components/Nav/MainNav.vue +++ b/src/components/Nav/MainNav.vue @@ -93,7 +93,7 @@ - + @@ -122,10 +122,8 @@ const openGithub = () => { window.open(packageJson.github); }; -// 是否为 Electron -const isElectron = computed(() => { - return checkPlatform.electron() || typeof electron !== "undefined"; -}); +// TitleBar +const titleBarShow = ref(false); // 主菜单渲染 const mainMenuShow = ref(false); @@ -143,6 +141,11 @@ const mainMenuOptions = computed(() => [ }, }, ]); + +onBeforeMount(() => { + // 是否显示 TitleBar + titleBarShow.value = checkPlatform.electron() || typeof electron !== "undefined"; +});