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
1edca309
authored
May 13, 2025
by
heheer
Committed by
GitHub
May 13, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove system plugin node version (#4797)
parent
1470c37e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
projects/app/src/pageComponents/app/detail/WorkflowComponents/Flow/nodes/render/NodeCard.tsx
+10
-2
No files found.
projects/app/src/pageComponents/app/detail/WorkflowComponents/Flow/nodes/render/NodeCard.tsx
View file @
1edca309
...
@@ -102,6 +102,14 @@ const NodeCard = (props: Props) => {
...
@@ -102,6 +102,14 @@ const NodeCard = (props: Props) => {
return
{
node
,
parentNode
};
return
{
node
,
parentNode
};
},
[
nodeList
,
nodeId
]);
},
[
nodeList
,
nodeId
]);
const
isAppNode
=
node
&&
AppNodeFlowNodeTypeMap
[
node
?.
flowNodeType
];
const
isAppNode
=
node
&&
AppNodeFlowNodeTypeMap
[
node
?.
flowNodeType
];
const
showVersion
=
useMemo
(()
=>
{
if
(
!
isAppNode
||
!
node
?.
pluginId
)
return
false
;
const
splitRes
=
node
.
pluginId
.
split
(
'-'
);
if
(
splitRes
.
length
>
1
)
{
return
false
;
}
return
true
;
},
[
isAppNode
,
node
]);
const
{
data
:
nodeTemplate
}
=
useRequest2
(
const
{
data
:
nodeTemplate
}
=
useRequest2
(
async
()
=>
{
async
()
=>
{
...
@@ -212,7 +220,7 @@ const NodeCard = (props: Props) => {
...
@@ -212,7 +220,7 @@ const NodeCard = (props: Props) => {
<
MyIcon
name=
{
'edit'
}
w=
{
'14px'
}
/>
<
MyIcon
name=
{
'edit'
}
w=
{
'14px'
}
/>
</
Button
>
</
Button
>
<
Box
flex=
{
1
}
mr=
{
1
}
/>
<
Box
flex=
{
1
}
mr=
{
1
}
/>
{
isAppN
ode
&&
<
NodeVersion
node=
{
node
}
/>
}
{
showVersion
&&
n
ode
&&
<
NodeVersion
node=
{
node
}
/>
}
{
!!
nodeTemplate
?.
diagram
&&
(
{
!!
nodeTemplate
?.
diagram
&&
(
<
MyTooltip
<
MyTooltip
label=
{
label=
{
...
@@ -279,7 +287,7 @@ const NodeCard = (props: Props) => {
...
@@ -279,7 +287,7 @@ const NodeCard = (props: Props) => {
avatar
,
avatar
,
t
,
t
,
name
,
name
,
isAppNode
,
showVersion
,
nodeTemplate
?.
diagram
,
nodeTemplate
?.
diagram
,
nodeTemplate
?.
userGuide
,
nodeTemplate
?.
userGuide
,
nodeTemplate
?.
name
,
nodeTemplate
?.
name
,
...
...
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