💄 mac隐藏游戏目录设置&游戏启动badge

This commit is contained in:
目棃
2024-10-26 15:39:27 +08:00
parent 83bfd5d1eb
commit 5f1d07968c
3 changed files with 8 additions and 2 deletions

View File

@@ -29,7 +29,11 @@
</div>
</template>
</v-list-item>
<v-list-item title="游戏安装目录" :subtitle="appStore.gameDir.value">
<v-list-item
title="游戏安装目录"
:subtitle="appStore.gameDir.value"
v-if="platform() === 'windows'"
>
<template #prepend>
<div class="config-icon">
<v-icon>mdi-gamepad</v-icon>

View File

@@ -103,7 +103,7 @@
<div class="config-right">
<TcAppBadge />
<TcUserBadge @loadOuter="loadHandle" />
<TcGameBadge />
<TcGameBadge v-if="platform() === 'windows'" />
</div>
</template>
@@ -111,6 +111,7 @@
import { core } from "@tauri-apps/api";
import { open } from "@tauri-apps/plugin-dialog";
import { remove } from "@tauri-apps/plugin-fs";
import { platform } from "@tauri-apps/plugin-os";
import { exit } from "@tauri-apps/plugin-process";
import { onMounted, ref } from "vue";

View File

@@ -120,6 +120,7 @@ export async function generateShareImg(
y: -15,
dpi: 350,
};
// @ts-expect-error This expression is not callable.
const canvasData = await html2canvas(element, opts);
if (scrollable) element.style.maxHeight = maxHeight;
const buffer = new Uint8Array(