setResultExisted(true)}
+ />)
- // const renderResWrap = (
- //
- //
- // {renderRes()}
- //
- //
- // )
+ const renderResWrap = (
+
+ )
- return (xxxx
)
-
- // console.log(siteInfo, promptConfig)
-
- if(isFetchingAppInfo || !siteInfo || !promptConfig) {
+ if(!siteInfo || !promptConfig) {
return (
diff --git a/web/service/share.ts b/web/service/share.ts
index a940af98c5..70f1044c61 100644
--- a/web/service/share.ts
+++ b/web/service/share.ts
@@ -39,7 +39,7 @@ export enum AppSourceType {
const apiPrefix = {
[AppSourceType.webApp]: '',
[AppSourceType.installedApp]: 'installed-apps',
- [AppSourceType.tryApp]: 'installed-apps', // 'trial-apps', use 'installed-apps' for test
+ [AppSourceType.tryApp]: 'trial-apps',
}
function getIsPublicAPI(appSourceType: AppSourceType) {
diff --git a/web/service/use-try-app.ts b/web/service/use-try-app.ts
index 1350997990..1d7ed2ca02 100644
--- a/web/service/use-try-app.ts
+++ b/web/service/use-try-app.ts
@@ -13,11 +13,11 @@ export const useGetTryAppInfo = (appId: string) => {
})
}
-export const useGetTryAppParams = () => {
+export const useGetTryAppParams = (appId: string) => {
return useQuery({
queryKey: [NAME_SPACE, 'appParams'],
queryFn: () => {
- return fetchAppParams(AppSourceType.webApp) // todo: wait api
+ return fetchAppParams(AppSourceType.tryApp, appId)
},
})
}