mirror of
https://github.com/imsyy/SPlayer.git
synced 2025-11-25 19:37:35 +08:00
🐞 fix: 修复标题栏异常消失 #142
This commit is contained in:
@@ -2,11 +2,6 @@
|
||||
|
||||
> 一个简约的音乐播放器
|
||||
|
||||
> [!CAUTION]
|
||||
>
|
||||
> # 因收到网易云官方警告函,本项目从即日起停止一切新功能开发,同时无限期停止维护,感谢您的理解和支持。
|
||||
> ## 在线预览页面也将同步下线
|
||||
|
||||

|
||||
|
||||
## 说明
|
||||
|
||||
@@ -93,7 +93,7 @@
|
||||
<!-- 用户信息 -->
|
||||
<userData />
|
||||
<!-- TitleBar -->
|
||||
<TitleBar v-if="isElectron" />
|
||||
<TitleBar v-if="titleBarShow" />
|
||||
</div>
|
||||
</nav>
|
||||
</template>
|
||||
@@ -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";
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Reference in New Issue
Block a user