Commit 8ba23398 by heheer Committed by GitHub

download fetch baseurl & node select dnd (#3820)

parent e7b89343
...@@ -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}
......
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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment