feat: 配置审核页展示已审批历史版本,支持点击对比

This commit is contained in:
mediabot-pt
2026-06-29 23:37:01 +08:00
parent 7c7fe0405a
commit 4c9c53d7c8
2 changed files with 48 additions and 3 deletions

View File

@@ -39,6 +39,7 @@ export default {
configs: {
list: () => api.get('/configs'),
pending: () => api.get('/configs/pending'),
bySite: (siteId) => api.get(`/configs/${siteId}`),
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 } })