fix little bug

This commit is contained in:
sijinhui 2024-08-07 23:42:03 +08:00
parent 6d01e6fb93
commit 4b97e374e7
2 changed files with 2 additions and 2 deletions

View File

@ -319,7 +319,7 @@ export function SideBar(props: { className?: string }) {
} }
onClose={() => setShowPluginSelector(false)} onClose={() => setShowPluginSelector(false)}
onSelection={(s) => { onSelection={(s) => {
navigate(s[0], { state: { fromHome: true } }); navigate(s[0] as any, { state: { fromHome: true } });
}} }}
/> />
)} )}

View File

@ -145,7 +145,7 @@ export function uploadImage(file: Blob): Promise<string> {
body, body,
mode: "cors", mode: "cors",
credentials: "include", credentials: "include",
}) } as RequestInit)
.then((res) => res.json()) .then((res) => res.json())
.then((res) => { .then((res) => {
console.log("res", res); console.log("res", res);