💄 自定义Sentry反馈按钮样式

This commit is contained in:
BTMuli
2025-12-29 23:18:10 +08:00
parent ab115726bd
commit 10202a919d
5 changed files with 59 additions and 10 deletions

View File

@@ -6,9 +6,6 @@
</div>
<div class="tab-info">v{{ versionApp }}.{{ buildTime === "" ? "Dev" : buildTime }}</div>
<div class="tab-links">
<div class="tab-link" title="反馈BUG" @click="toReport()">
<v-icon color="white">mdi-contactless-payment-circle-outline</v-icon>
</div>
<div class="tab-link" title="点击加入反馈群" @click="toGroup()">
<img alt="qq" src="/platforms/other/qq.webp" />
</div>
@@ -25,7 +22,6 @@
</div>
</template>
<script lang="ts" setup>
import * as Sentry from "@sentry/vue";
import useAppStore from "@store/app.js";
import { app } from "@tauri-apps/api";
import { openUrl } from "@tauri-apps/plugin-opener";
@@ -37,11 +33,6 @@ const versionApp = ref<string>();
onMounted(async () => (versionApp.value = await app.getVersion()));
async function toReport(): Promise<void> {
const eventId = Sentry.captureMessage("设置页反馈", "info");
Sentry.showReportDialog({ eventId: eventId });
}
async function toRelease(): Promise<void> {
await openUrl("https://github.com/BTMuli/TeyvatGuide/releases/latest");
}