umi-request 替换为 axios

This commit is contained in:
whyour
2023-07-17 23:13:06 +08:00
parent bd166ee794
commit efd4f1d5ab
32 changed files with 215 additions and 214 deletions
+1 -3
View File
@@ -20,9 +20,7 @@ const NotificationSetting = ({ data }: any) => {
request
.put(`${config.apiPrefix}user/notification`, {
data: {
...values,
},
values,
})
.then(({ code, data }) => {
if (code === 200) {