fix: api.raw加put+delete方法

This commit is contained in:
mediabot-pt
2026-07-05 22:01:08 +08:00
parent 5d1af9c70a
commit 41dfd04203

View File

@@ -95,5 +95,5 @@ export default {
},
health: () => api.get('/health', { baseURL: '' }),
// 原始 axios 实例,供需要直接调用(如 blob 下载)的场景使用
raw: { get: (url, cfg) => api.get(url, cfg), post: (url, data, cfg) => api.post(url, data, cfg) }
raw: { get: (url, cfg) => api.get(url, cfg), post: (url, data, cfg) => api.post(url, data, cfg), put: (url, data, cfg) => api.put(url, data, cfg), delete: (url, cfg) => api.delete(url, cfg) }
}