From 4c9c53d7c82d88d44da01b076765b215c35f4372 Mon Sep 17 00:00:00 2001 From: mediabot-pt <295750538+mediabot-pt@users.noreply.github.com> Date: Mon, 29 Jun 2026 23:37:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=85=8D=E7=BD=AE=E5=AE=A1=E6=A0=B8?= =?UTF-8?q?=E9=A1=B5=E5=B1=95=E7=A4=BA=E5=B7=B2=E5=AE=A1=E6=89=B9=E5=8E=86?= =?UTF-8?q?=E5=8F=B2=E7=89=88=E6=9C=AC=EF=BC=8C=E6=94=AF=E6=8C=81=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E5=AF=B9=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/api/index.js | 1 + web/src/views/Configs.vue | 50 ++++++++++++++++++++++++++++++++++++--- 2 files changed, 48 insertions(+), 3 deletions(-) diff --git a/web/src/api/index.js b/web/src/api/index.js index e508618..0e023c8 100644 --- a/web/src/api/index.js +++ b/web/src/api/index.js @@ -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 } }) diff --git a/web/src/views/Configs.vue b/web/src/views/Configs.vue index c50ef35..106326c 100644 --- a/web/src/views/Configs.vue +++ b/web/src/views/Configs.vue @@ -21,14 +21,27 @@ - +
站点: {{ viewing.siteId }}   版本: {{ viewing.version }}   提交者: {{ viewing.submitterId || '-' }} + + 历史版本 ({{ historyConfigs.length }}) +
-
-

+      
+
+
待审核配置
+

+        
+
+
已审批版本
+
+ v{{ h.version }} + {{ h.createdAt }} +
+