mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-12 21:46:06 +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) => {
|
||||
const reqBody = sanitizeBody(body);
|
||||
return axios.post(url, {
|
||||
body: reqBody,
|
||||
return axios.post(url, body, {
|
||||
headers: DEFAULT_HEADERS
|
||||
}).then(res => res).catch(err => {
|
||||
message.error(err);
|
||||
@ -79,9 +78,7 @@ export const sendSpacePostRequest = (url: string, body?: any) => {
|
||||
}
|
||||
|
||||
export const sendSpaceUploadPostRequest = (url: string, body?: any) => {
|
||||
return axios.post(url, {
|
||||
body: body,
|
||||
}).then(res => res).catch(err => {
|
||||
return axios.post(url, body).then(res => res).catch(err => {
|
||||
message.error(err);
|
||||
Promise.reject(err);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user