mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-06 08:32:51 +08:00
💄 mac隐藏游戏目录设置&游戏启动badge
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user