mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
⚡️ 优化错误处理
This commit is contained in:
@@ -110,6 +110,13 @@ async function refreshRoles(): Promise<void> {
|
||||
await TGSqlite.saveUserCharacter(user.gameUid, res);
|
||||
loadingTitle.value = "正在更新角色数据";
|
||||
await loadRole();
|
||||
} else {
|
||||
// todo 1034 极验处理
|
||||
showSnackbar({
|
||||
text: `[${res.retcode}] ${res.message}`,
|
||||
color: "error",
|
||||
});
|
||||
console.error(res);
|
||||
}
|
||||
loading.value = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user