From 9aa789821e1f401d935bef991a33e580978ac3cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9B=AE=E6=A3=83?= Date: Mon, 30 Sep 2024 19:25:52 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20=E4=BC=98=E5=8C=96=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/config/tc-gameBadge.vue | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/src/components/config/tc-gameBadge.vue b/src/components/config/tc-gameBadge.vue index 34d2912b..5e0ac355 100644 --- a/src/components/config/tc-gameBadge.vue +++ b/src/components/config/tc-gameBadge.vue @@ -2,21 +2,12 @@
✨原神,启动!
-
- - -
+
- {{ account.nickname }}({{ account.regionName }}) + + {{ account.nickname }}({{ account.regionName }}) + {{ account.gameUid }} Lv.{{ account.level }}
@@ -26,7 +17,7 @@ import { path } from "@tauri-apps/api"; import { exists } from "@tauri-apps/plugin-fs"; import { Command } from "@tauri-apps/plugin-shell"; import { storeToRefs } from "pinia"; -import { onMounted, ref, computed } from "vue"; +import { onMounted, ref } from "vue"; import TSUserAccount from "../../plugins/Sqlite/modules/userAccount.js"; import { useAppStore } from "../../store/modules/app.js"; @@ -37,12 +28,7 @@ import showSnackbar from "../func/snackbar.js"; const userStore = storeToRefs(useUserStore()); const appStore = storeToRefs(useAppStore()); - const account = ref(); -const canPlay = computed(() => { - if (!account.value) return false; - return account.value.isOfficial === 1; -}); onMounted(async () => { if (!userStore.uid.value) return; @@ -53,7 +39,6 @@ async function refreshAccount(): Promise { const accountFind = await TSUserAccount.game.getCurAccount(userStore.uid.value!); if (!accountFind) account.value = undefined; else account.value = accountFind; - showSnackbar({ text: "成功刷新当前登录用户!" }); } async function tryPlayGame(): Promise { @@ -119,6 +104,7 @@ async function tryPlayGame(): Promise { .tgb-top { position: relative; display: flex; + width: 100%; align-items: center; justify-content: space-between; }