feat: 配置审核页增加查看详情(语法高亮JSON)

This commit is contained in:
mediabot-pt
2026-06-29 22:55:38 +08:00
parent 377aa90c96
commit 98e040c06b
2 changed files with 89 additions and 1 deletions

View File

@@ -39,6 +39,7 @@ export default {
configs: {
list: () => api.get('/configs'),
pending: () => api.get('/configs/pending'),
download: (siteId, version) => api.get(`/configs/${siteId}/${version}`, { responseType: 'text' }),
approve: (id, comment) => api.post(`/admin/reviews/${id}/approve`, null, { params: { comment } }),
reject: (id, comment) => api.post(`/admin/reviews/${id}/reject`, null, { params: { comment } })
},