fix: api.raw加put+delete方法
This commit is contained in:
@@ -95,5 +95,5 @@ export default {
|
|||||||
},
|
},
|
||||||
health: () => api.get('/health', { baseURL: '' }),
|
health: () => api.get('/health', { baseURL: '' }),
|
||||||
// 原始 axios 实例,供需要直接调用(如 blob 下载)的场景使用
|
// 原始 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) }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user