mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-12 19:30:48 +08:00
umi-request 替换为 axios
This commit is contained in:
@@ -19,9 +19,7 @@ const SaveModal = ({
|
||||
setLoading(true);
|
||||
const payload = { ...file, ...values, originFilename: file.title };
|
||||
request
|
||||
.post(`${config.apiPrefix}scripts`, {
|
||||
data: payload,
|
||||
})
|
||||
.post(`${config.apiPrefix}scripts`, payload)
|
||||
.then(({ code, data }) => {
|
||||
if (code === 200) {
|
||||
message.success('保存文件成功');
|
||||
|
||||
Reference in New Issue
Block a user