mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-21 11:43:56 +00:00
download fetch baseurl & node select dnd (#3820)
This commit is contained in:
@@ -148,13 +148,12 @@ const OptionItem = ({
|
||||
mb={4}
|
||||
ref={provided.innerRef}
|
||||
{...provided.draggableProps}
|
||||
{...provided.dragHandleProps}
|
||||
style={{
|
||||
...provided.draggableProps.style,
|
||||
opacity: snapshot.isDragging ? 0.8 : 1
|
||||
}}
|
||||
>
|
||||
<HStack spacing={1}>
|
||||
<HStack spacing={1} {...provided.dragHandleProps}>
|
||||
<MyTooltip label={t('common:common.Delete')}>
|
||||
<MyIcon
|
||||
mt={0.5}
|
||||
|
@@ -1,5 +1,6 @@
|
||||
import { LLMModelItemType } from '@fastgpt/global/core/ai/model.d';
|
||||
import { useSystemStore } from './useSystemStore';
|
||||
import { getWebReqUrl } from '@fastgpt/web/common/system/utils';
|
||||
|
||||
export const downloadFetch = async ({
|
||||
url,
|
||||
@@ -12,7 +13,7 @@ export const downloadFetch = async ({
|
||||
}) => {
|
||||
if (body) {
|
||||
// fetch data with POST method if body exists
|
||||
const response = await fetch(url, {
|
||||
const response = await fetch(getWebReqUrl(url), {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
|
Reference in New Issue
Block a user