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
c41def5f
authored
Dec 13, 2024
by
Archer
Committed by
GitHub
Dec 13, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix input (#3385)
* doc * fix: inputs * fix: inputs * fix: inputs * fix: inputs
parent
b596976a
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
10 deletions
+15
-10
docSite/content/zh-cn/docs/development/upgrading/4815.md
+1
-1
files/docker/docker-compose-milvus.yml
+2
-2
files/docker/docker-compose-pgvector.yml
+2
-2
files/docker/docker-compose-zilliz.yml
+2
-2
projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/nodes/render/RenderInput/index.tsx
+8
-3
No files found.
docSite/content/zh-cn/docs/development/upgrading/4815.md
View file @
c41def5f
...
@@ -23,7 +23,7 @@ weight: 809
...
@@ -23,7 +23,7 @@ weight: 809
## 升级指南
## 升级指南
-
更新 fastgpt 镜像 tag: v4.8.15-fix
-
更新 fastgpt 镜像 tag: v4.8.15-fix
2
-
更新 fastgpt-pro 商业版镜像 tag: v4.8.15
-
更新 fastgpt-pro 商业版镜像 tag: v4.8.15
-
Sandbox 镜像,可以不更新
-
Sandbox 镜像,可以不更新
...
...
files/docker/docker-compose-milvus.yml
View file @
c41def5f
...
@@ -121,8 +121,8 @@ services:
...
@@ -121,8 +121,8 @@ services:
restart
:
always
restart
:
always
fastgpt
:
fastgpt
:
container_name
:
fastgpt
container_name
:
fastgpt
image
:
ghcr.io/labring/fastgpt:v4.8.15-fix
# git
image
:
ghcr.io/labring/fastgpt:v4.8.15-fix
2
# git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.15-fix # 阿里云
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.15-fix
2
# 阿里云
ports
:
ports
:
-
3000:3000
-
3000:3000
networks
:
networks
:
...
...
files/docker/docker-compose-pgvector.yml
View file @
c41def5f
...
@@ -79,8 +79,8 @@ services:
...
@@ -79,8 +79,8 @@ services:
restart
:
always
restart
:
always
fastgpt
:
fastgpt
:
container_name
:
fastgpt
container_name
:
fastgpt
image
:
ghcr.io/labring/fastgpt:v4.8.15-fix
# git
image
:
ghcr.io/labring/fastgpt:v4.8.15-fix
2
# git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.15-fix # 阿里云
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.15-fix
2
# 阿里云
ports
:
ports
:
-
3000:3000
-
3000:3000
networks
:
networks
:
...
...
files/docker/docker-compose-zilliz.yml
View file @
c41def5f
...
@@ -60,8 +60,8 @@ services:
...
@@ -60,8 +60,8 @@ services:
restart
:
always
restart
:
always
fastgpt
:
fastgpt
:
container_name
:
fastgpt
container_name
:
fastgpt
image
:
ghcr.io/labring/fastgpt:v4.8.15-fix
# git
image
:
ghcr.io/labring/fastgpt:v4.8.15-fix
2
# git
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.15-fix # 阿里云
# image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.15-fix
2
# 阿里云
ports
:
ports
:
-
3000:3000
-
3000:3000
networks
:
networks
:
...
...
projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/nodes/render/RenderInput/index.tsx
View file @
c41def5f
...
@@ -85,14 +85,19 @@ type Props = {
...
@@ -85,14 +85,19 @@ type Props = {
const
RenderInput
=
({
flowInputList
,
nodeId
,
CustomComponent
,
mb
=
5
}:
Props
)
=>
{
const
RenderInput
=
({
flowInputList
,
nodeId
,
CustomComponent
,
mb
=
5
}:
Props
)
=>
{
const
{
feConfigs
}
=
useSystemStore
();
const
{
feConfigs
}
=
useSystemStore
();
const
filterInputs
=
useMemo
(()
=>
{
const
filter
Pro
Inputs
=
useMemo
(()
=>
{
return
flowInputList
.
filter
((
input
)
=>
{
return
flowInputList
.
filter
((
input
)
=>
{
if
(
input
.
isPro
&&
!
feConfigs
?.
isPlus
)
return
false
;
if
(
input
.
isPro
&&
!
feConfigs
?.
isPlus
)
return
false
;
return
true
;
});
},
[
feConfigs
?.
isPlus
,
flowInputList
]);
const
filterInputs
=
useMemo
(()
=>
{
return
filterProInputs
.
filter
((
input
)
=>
{
const
renderType
=
input
.
renderTypeList
?.[
input
.
selectedTypeIndex
||
0
];
const
renderType
=
input
.
renderTypeList
?.[
input
.
selectedTypeIndex
||
0
];
const
isDynamic
=
!!
input
.
canEdit
;
const
isDynamic
=
!!
input
.
canEdit
;
if
(
renderType
===
FlowNodeInputTypeEnum
.
hidden
&&
!
isDynamic
)
return
false
;
if
(
renderType
===
FlowNodeInputTypeEnum
.
hidden
||
isDynamic
)
return
false
;
return
true
;
return
true
;
});
});
...
@@ -111,7 +116,7 @@ const RenderInput = ({ flowInputList, nodeId, CustomComponent, mb = 5 }: Props)
...
@@ -111,7 +116,7 @@ const RenderInput = ({ flowInputList, nodeId, CustomComponent, mb = 5 }: Props)
const
Component
=
RenderList
.
find
((
item
)
=>
item
.
types
.
includes
(
renderType
))?.
Component
;
const
Component
=
RenderList
.
find
((
item
)
=>
item
.
types
.
includes
(
renderType
))?.
Component
;
if
(
!
Component
)
return
null
;
if
(
!
Component
)
return
null
;
return
<
Component
inputs=
{
filterInputs
}
item=
{
input
}
nodeId=
{
nodeId
}
/>;
return
<
Component
inputs=
{
filter
Pro
Inputs
}
item=
{
input
}
nodeId=
{
nodeId
}
/>;
})();
})();
return
(
return
(
...
...
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