download fetch baseurl & node select dnd (#3820)

This commit is contained in:
heheer
2025-02-18 20:25:15 +08:00
committed by GitHub
parent e7b8934367
commit 8ba2339890
2 changed files with 3 additions and 3 deletions

View File

@@ -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}

View File

@@ -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'