mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix selectUser (#1031)
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user