fix: 下载配置接口加null检查,前端去掉responseType:text让axios自动解析
This commit is contained in:
@@ -39,7 +39,7 @@ export default {
|
||||
configs: {
|
||||
list: () => api.get('/configs'),
|
||||
pending: () => api.get('/configs/pending'),
|
||||
download: (siteId, version) => api.get(`/configs/${siteId}/${version}`, { responseType: 'text' }),
|
||||
download: (siteId, version) => api.get(`/configs/${siteId}/${version}`),
|
||||
approve: (id, comment) => api.post(`/admin/reviews/${id}/approve`, null, { params: { comment } }),
|
||||
reject: (id, comment) => api.post(`/admin/reviews/${id}/reject`, null, { params: { comment } })
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user