mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-14 06:26:18 +00:00
feat: set owner and desc
This commit is contained in:
parent
07e6fbe677
commit
8b0f102a62
@ -69,8 +69,7 @@ export const sendPostRequest = (url: string, body?: any) => {
|
|||||||
|
|
||||||
export const sendSpacePostRequest = (url: string, body?: any) => {
|
export const sendSpacePostRequest = (url: string, body?: any) => {
|
||||||
const reqBody = sanitizeBody(body);
|
const reqBody = sanitizeBody(body);
|
||||||
return axios.post(url, {
|
return axios.post(url, body, {
|
||||||
body: reqBody,
|
|
||||||
headers: DEFAULT_HEADERS
|
headers: DEFAULT_HEADERS
|
||||||
}).then(res => res).catch(err => {
|
}).then(res => res).catch(err => {
|
||||||
message.error(err);
|
message.error(err);
|
||||||
@ -79,9 +78,7 @@ export const sendSpacePostRequest = (url: string, body?: any) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const sendSpaceUploadPostRequest = (url: string, body?: any) => {
|
export const sendSpaceUploadPostRequest = (url: string, body?: any) => {
|
||||||
return axios.post(url, {
|
return axios.post(url, body).then(res => res).catch(err => {
|
||||||
body: body,
|
|
||||||
}).then(res => res).catch(err => {
|
|
||||||
message.error(err);
|
message.error(err);
|
||||||
Promise.reject(err);
|
Promise.reject(err);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user