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;
}