mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-24 02:51:13 +00:00
feat: modify the url
This commit is contained in:
@@ -60,7 +60,7 @@ const Index = () => {
|
|||||||
props.onSubmit?.()
|
props.onSubmit?.()
|
||||||
} else {
|
} else {
|
||||||
props.onSubmit?.();
|
props.onSubmit?.();
|
||||||
const res = await fetch('/knowledge/space/add', {
|
const res = await fetch('http://localhost:8000/knowledge/space/add', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
@@ -101,7 +101,7 @@ const Index = () => {
|
|||||||
key="goToTree"
|
key="goToTree"
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
props.onSubmit?.();
|
props.onSubmit?.();
|
||||||
const res = await fetch(`/knowledge/${knowledgeSpaceName}/document/add`, {
|
const res = await fetch(`http://localhost:8000/knowledge/${knowledgeSpaceName}/document/add`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
@@ -172,7 +172,7 @@ const Index = () => {
|
|||||||
name="webPageUrl"
|
name="webPageUrl"
|
||||||
label="Web Page URL"
|
label="Web Page URL"
|
||||||
width="lg"
|
width="lg"
|
||||||
placeholder="Please input the name"
|
placeholder="Please input the Web Page URL"
|
||||||
rules={[{ required: true }]}
|
rules={[{ required: true }]}
|
||||||
onChange={(e: any) => setWebPageUrl(e.target.value)}
|
onChange={(e: any) => setWebPageUrl(e.target.value)}
|
||||||
/>
|
/>
|
||||||
|
Reference in New Issue
Block a user