mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-02 08:06:38 +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)}
|
onClose={() => setShowPluginSelector(false)}
|
||||||
onSelection={(s) => {
|
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,
|
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);
|
||||||
|
Loading…
Reference in New Issue
Block a user