From 962614500c52d3059062ae2f9e5ad6ef974e7ca6 Mon Sep 17 00:00:00 2001 From: liumangmang Date: Wed, 1 Jul 2026 15:52:48 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=9A=94=E7=A6=BB=20Websites.vue?= =?UTF-8?q?=20=E5=85=A8=E5=B1=80=E6=A0=B7=E5=BC=8F=EF=BC=8C=E4=BB=85?= =?UTF-8?q?=E5=AF=B9=20Element=20Plus=20=E5=A3=B3=E5=B1=82=E8=8A=82?= =?UTF-8?q?=E7=82=B9=E5=BA=94=E7=94=A8=E9=9D=9E=20scoped=20=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F=E4=BB=A5=E9=98=B2=E6=B1=A1=E6=9F=93=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/Websites.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/Websites.vue b/frontend/src/views/Websites.vue index a301e30..a0c179e 100644 --- a/frontend/src/views/Websites.vue +++ b/frontend/src/views/Websites.vue @@ -1334,7 +1334,7 @@ function confirmGroupSelection() { function adjustPercent(amount: number) { let val = Number(bindingForm.value.percent) || 0 - val = Math.max(0, val + amount) + val = Math.max(0, Math.min(100, val + amount)) bindingForm.value.percent = Number(val.toFixed(2)) } @@ -1965,7 +1965,9 @@ onMounted(loadAll) .btn-save:hover { background: #cb8440 !important; } + + +