upgrade deps

This commit is contained in:
undefined committed 2025-07-21 18:03:17 +08:00
1 parent 1232e8f3a1
commit ff41b1b887
17 files changed
+60 -56

No files matched your search

@@ -126,8 +126,6 @@ export async function prompt<T extends string>(title: string, fields: Record<T,
const defaultValues = Object.fromEntries(Object.entries(fields)
.map(([name, field]: [T, Field]) => [name, field.default || ''])) as Record<T, string | number | boolean>;
console.log(valueCache, defaultValues);
const Component = () => {
const [values, setValues] = React.useState(defaultValues);
@@ -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._id}`);
const res = await request.get(`/account/${target}`);
if (res.url) window.location.href = res.url;
else window.location.reload();
} catch (error) {