mirror of
https://github.com/Yidadaa/ChatGPT-Next-Web.git
synced 2025-08-09 00:15:38 +08:00
fix typescript error
This commit is contained in:
@@ -15,7 +15,7 @@ async function handle(req: NextRequest, res: NextResponse) {
|
||||
const body: {
|
||||
key: string;
|
||||
value: string;
|
||||
expiration_ttl?: Number;
|
||||
expiration_ttl?: number;
|
||||
} = {
|
||||
key: hashedCode,
|
||||
value: clonedBody,
|
||||
|
@@ -33,7 +33,7 @@ export function HTMLPreview(props: {
|
||||
*/
|
||||
|
||||
useEffect(() => {
|
||||
const handleMessage = (e) => {
|
||||
const handleMessage = (e: any) => {
|
||||
const { id, height, title } = e.data;
|
||||
setTitle(title);
|
||||
if (id == frameId.current) {
|
||||
|
@@ -528,7 +528,7 @@ export function FullScreen(props: any) {
|
||||
}
|
||||
}, []);
|
||||
useEffect(() => {
|
||||
const handleScreenChange = (e) => {
|
||||
const handleScreenChange = (e: any) => {
|
||||
if (e.target === ref.current) {
|
||||
setFullScreen(!!document.fullscreenElement);
|
||||
}
|
||||
|
Reference in New Issue
Block a user