mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-01 23:56:39 +08:00
fix little bug
This commit is contained in:
parent
6d01e6fb93
commit
4b97e374e7
@ -319,7 +319,7 @@ export function SideBar(props: { className?: string }) {
|
||||
}
|
||||
onClose={() => setShowPluginSelector(false)}
|
||||
onSelection={(s) => {
|
||||
navigate(s[0], { state: { fromHome: true } });
|
||||
navigate(s[0] as any, { state: { fromHome: true } });
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
@ -145,7 +145,7 @@ export function uploadImage(file: Blob): Promise<string> {
|
||||
body,
|
||||
mode: "cors",
|
||||
credentials: "include",
|
||||
})
|
||||
} as RequestInit)
|
||||
.then((res) => res.json())
|
||||
.then((res) => {
|
||||
console.log("res", res);
|
||||
|
Loading…
Reference in New Issue
Block a user