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
8ba23398
authored
Feb 18, 2025
by
heheer
Committed by
GitHub
Feb 18, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
download fetch baseurl & node select dnd (#3820)
parent
e7b89343
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
projects/app/src/pageComponents/app/detail/WorkflowComponents/Flow/nodes/NodeUserSelect.tsx
+1
-2
projects/app/src/web/common/system/utils.ts
+2
-1
No files found.
projects/app/src/pageComponents/app/detail/WorkflowComponents/Flow/nodes/NodeUserSelect.tsx
View file @
8ba23398
...
@@ -148,13 +148,12 @@ const OptionItem = ({
...
@@ -148,13 +148,12 @@ const OptionItem = ({
mb=
{
4
}
mb=
{
4
}
ref=
{
provided
.
innerRef
}
ref=
{
provided
.
innerRef
}
{
...
provided
.
draggableProps
}
{
...
provided
.
draggableProps
}
{
...
provided
.
dragHandleProps
}
style=
{
{
style=
{
{
...
provided
.
draggableProps
.
style
,
...
provided
.
draggableProps
.
style
,
opacity
:
snapshot
.
isDragging
?
0.8
:
1
opacity
:
snapshot
.
isDragging
?
0.8
:
1
}
}
}
}
>
>
<
HStack
spacing=
{
1
}
>
<
HStack
spacing=
{
1
}
{
...
provided
.
dragHandleProps
}
>
<
MyTooltip
label=
{
t
(
'common:common.Delete'
)
}
>
<
MyTooltip
label=
{
t
(
'common:common.Delete'
)
}
>
<
MyIcon
<
MyIcon
mt=
{
0.5
}
mt=
{
0.5
}
...
...
projects/app/src/web/common/system/utils.ts
View file @
8ba23398
import
{
LLMModelItemType
}
from
'@fastgpt/global/core/ai/model.d'
;
import
{
LLMModelItemType
}
from
'@fastgpt/global/core/ai/model.d'
;
import
{
useSystemStore
}
from
'./useSystemStore'
;
import
{
useSystemStore
}
from
'./useSystemStore'
;
import
{
getWebReqUrl
}
from
'@fastgpt/web/common/system/utils'
;
export
const
downloadFetch
=
async
({
export
const
downloadFetch
=
async
({
url
,
url
,
...
@@ -12,7 +13,7 @@ export const downloadFetch = async ({
...
@@ -12,7 +13,7 @@ export const downloadFetch = async ({
})
=>
{
})
=>
{
if
(
body
)
{
if
(
body
)
{
// fetch data with POST method if body exists
// fetch data with POST method if body exists
const
response
=
await
fetch
(
url
,
{
const
response
=
await
fetch
(
getWebReqUrl
(
url
)
,
{
method
:
'POST'
,
method
:
'POST'
,
headers
:
{
headers
:
{
'Content-Type'
:
'application/json'
'Content-Type'
:
'application/json'
...
...
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