mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
parent
dd3adba4f9
commit
5428874d30
@ -134,7 +134,8 @@ export class Log extends React.Component<LogProps, LogState> {
|
||||
const res = await fetch(api.url, {
|
||||
method: api.method?.toLocaleUpperCase() || 'GET',
|
||||
headers: (api.headers as Record<string, string>) || undefined,
|
||||
body: api.data ? JSON.stringify(api.data) : undefined
|
||||
body: api.data ? JSON.stringify(api.data) : undefined,
|
||||
credentials: 'include'
|
||||
});
|
||||
if (res.status === 200) {
|
||||
const body = res.body;
|
||||
|
Loading…
Reference in New Issue
Block a user