🎨 记录所有账号但只显示原神

This commit is contained in:
目棃
2025-03-09 22:12:28 +08:00
parent bb67da034b
commit 6302f171e9
3 changed files with 5 additions and 6 deletions

View File

@@ -441,7 +441,8 @@ async function showAccounts(): Promise<void> {
showSnackbar.warn("未登录!");
return;
}
gameAccounts.value = await TSUserAccount.game.getAccount(uid.value);
const accountsGet = await TSUserAccount.game.getAccount(uid.value);
gameAccounts.value = accountsGet.filter((a) => a.gameBiz === "hk4e_cn");
if (gameAccounts.value.length === 0) {
showSnackbar.warn("未找到账户的游戏数据,请尝试刷新!");
return;