ui: fix selectUser (#1031)

This commit is contained in:
undefined committed 2025-08-08 03:27:37 +08:00
1 parent a255f53aa5
commit 17ab8b5bb0
5 files changed
+30 -19

No files matched your search

@@ -18,7 +18,7 @@ async function handlerSwitchAccount(ev) {
const target = await selectUser('Hint::icon::switch_account');
if (!target) return;
try {
const res = await request.get(`/account/${target}`);
const res = await request.get(`/account/${target._id}`);
if (res.url) window.location.href = res.url;
else window.location.reload();
} catch (error) {