mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
download fetch baseurl & node select dnd (#3820)
This commit is contained in:
@@ -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}
|
||||||
|
@@ -1,5 +1,6 @@
|
|||||||
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 ({
|
|||||||
}) => {
|
}) => {
|
||||||
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'
|
||||||
|
Reference in New Issue
Block a user