mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-12 11:22:58 +08:00
umi-request 替换为 axios
This commit is contained in:
@@ -23,9 +23,10 @@ const AppModal = ({
|
||||
payload.id = app.id;
|
||||
}
|
||||
try {
|
||||
const { code, data } = await request[method](`${config.apiPrefix}apps`, {
|
||||
data: payload,
|
||||
});
|
||||
const { code, data } = await request[method](
|
||||
`${config.apiPrefix}apps`,
|
||||
payload,
|
||||
);
|
||||
|
||||
if (code === 200) {
|
||||
message.success(app ? '更新应用成功' : '新建应用成功');
|
||||
|
||||
Reference in New Issue
Block a user