2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-07 16:47:14 +08:00

feat: alova.js替换axios

This commit is contained in:
耗子
2025-02-09 02:02:55 +08:00
parent d27a29151e
commit 4a7742b991
13 changed files with 131 additions and 217 deletions

View File

@@ -30,5 +30,5 @@ export default {
http.Post(`/apps/php${version}/extensions`, { slug }),
// 卸载拓展
uninstallExtension: (version: number, slug: string): any =>
http.Delete(`/apps/php${version}/extensions`, { data: { slug } })
http.Delete(`/apps/php${version}/extensions`, { slug })
}

View File

@@ -7,5 +7,5 @@ export default {
// 添加
add: (data: any): any => http.Post('/apps/s3fs/mounts', data),
// 删除
delete: (id: number): any => http.Delete('/apps/s3fs/mounts', { data: { id } })
delete: (id: number): any => http.Delete('/apps/s3fs/mounts', { id })
}