From 4ab582f38ab262dac08c1cb98309b805f3a72de0 Mon Sep 17 00:00:00 2001 From: mutu Date: Tue, 30 Jul 2024 15:02:15 +0800 Subject: [PATCH] style: fix ts error --- packages/gi-sdk-app/src/index.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/gi-sdk-app/src/index.tsx b/packages/gi-sdk-app/src/index.tsx index 16bd5baab..1c0550664 100644 --- a/packages/gi-sdk-app/src/index.tsx +++ b/packages/gi-sdk-app/src/index.tsx @@ -17,6 +17,7 @@ export interface Project { id: string; name: string; projectConfig: {}; + config: {}; themes: {}; theme?: string; }; @@ -53,8 +54,8 @@ const Studio: React.FunctionComponent = props => { service, loadingText = '正在加载图应用...', loadingComponent, - GISDKExtraParams, - componentExtraParams, + GISDKExtraParams = {}, + componentExtraParams = {}, } = props; const [state, setState] = React.useState({ isReady: false, @@ -139,6 +140,7 @@ const Studio: React.FunctionComponent = props => { {/** @ts-ignore */}