From 741eae236cedbef9be5e22393039c07293bbaa39 Mon Sep 17 00:00:00 2001 From: mediabot-pt <295750538+mediabot-pt@users.noreply.github.com> Date: Thu, 2 Jul 2026 10:26:24 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=84=9A=E6=9C=AC=E7=BC=96=E8=BE=91?= =?UTF-8?q?=E5=99=A8=E5=8A=A0=E5=8E=86=E5=8F=B2=E7=89=88=E6=9C=AC=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=EF=BC=8C=E5=8F=AF=E6=9F=A5=E7=9C=8B=E4=BB=BB=E6=84=8F?= =?UTF-8?q?=E5=B7=B2=E5=8F=91=E5=B8=83=E7=89=88=E6=9C=AC=E7=9A=84=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/views/AccessResultCheck.vue | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/web/src/views/AccessResultCheck.vue b/web/src/views/AccessResultCheck.vue index 9599a5b..2de6294 100644 --- a/web/src/views/AccessResultCheck.vue +++ b/web/src/views/AccessResultCheck.vue @@ -44,7 +44,10 @@ Groovy 脚本 保存 @@ -137,7 +140,7 @@ import { Loading } from '@element-plus/icons-vue' const route = useRoute() const siteId = route.params.siteId -const loading = ref(false), parseLoading = ref(false), scriptExpanded = ref(true) +const loading = ref(false), parseLoading = ref(false), scriptExpanded = ref(true), historyVersion = ref(null) const selectedConfigId = ref(null), selectedConfig = ref(null) const scriptContent = ref(''), saving = ref(false), approving = ref(false), rejecting = ref(false) const allConfigVersions = ref([]), allResults = ref([]) @@ -205,6 +208,12 @@ const loadScript = async () => { watch(selectedConfig, (v) => { if (v) loadScript() }) +const loadHistoryScript = async (configId) => { + if (!configId) return + try { const r = await api.adminConfigs.getScript(configId); scriptContent.value = r.data?.script || '' } + catch { ElMessage.error('加载失败') } +} + const revertScript = async () => { if (!selectedConfig.value) return try { await ElMessageBox.confirm('确认回滚?未保存的修改将丢失。','回滚脚本',{confirmButtonText:'确认',type:'warning'}) } catch{return}