Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
4447e403
authored
Feb 17, 2025
by
heheer
Committed by
GitHub
Feb 17, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix template market simple app (#3804)
parent
23949230
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
projects/app/src/pageComponents/app/list/TemplateMarketModal.tsx
+4
-7
No files found.
projects/app/src/pageComponents/app/list/TemplateMarketModal.tsx
View file @
4447e403
...
@@ -95,18 +95,15 @@ const TemplateMarketModal = ({
...
@@ -95,18 +95,15 @@ const TemplateMarketModal = ({
const
{
runAsync
:
onUseTemplate
,
loading
:
isCreating
}
=
useRequest2
(
const
{
runAsync
:
onUseTemplate
,
loading
:
isCreating
}
=
useRequest2
(
async
(
template
:
AppTemplateSchemaType
)
=>
{
async
(
template
:
AppTemplateSchemaType
)
=>
{
const
templateDetail
=
await
getTemplateMarketItemDetail
(
template
.
templateId
);
const
templateDetail
=
await
getTemplateMarketItemDetail
(
template
.
templateId
);
let
workflow
=
templateDetail
.
workflow
;
if
(
templateDetail
.
type
===
AppTypeEnum
.
simple
)
{
workflow
=
form2AppWorkflow
(
workflow
,
t
);
}
return
postCreateApp
({
return
postCreateApp
({
parentId
,
parentId
,
avatar
:
template
.
avatar
,
avatar
:
template
.
avatar
,
name
:
template
.
name
,
name
:
template
.
name
,
type
:
template
.
type
as
AppTypeEnum
,
type
:
template
.
type
as
AppTypeEnum
,
modules
:
workflow
.
nodes
||
[],
modules
:
templateDetail
.
workflow
.
nodes
||
[],
edges
:
workflow
.
edges
||
[],
edges
:
templateDetail
.
workflow
.
edges
||
[],
chatConfig
:
workflow
.
chatConfig
chatConfig
:
templateDetail
.
workflow
.
chatConfig
}).
then
((
res
)
=>
{
}).
then
((
res
)
=>
{
webPushTrack
.
useAppTemplate
({
webPushTrack
.
useAppTemplate
({
id
:
res
,
id
:
res
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment