From 8c2595eabbfe3dac2a7aa494ed9eefbce9be904d Mon Sep 17 00:00:00 2001
From: pengda <10266652509@qq.com>
Date: Thu, 10 Oct 2024 16:46:23 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 view/templates/admin/save_pass.html | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/view/templates/admin/save_pass.html b/view/templates/admin/save_pass.html
index 3da3fa4..cd07545 100644
--- a/view/templates/admin/save_pass.html
+++ b/view/templates/admin/save_pass.html
@@ -72,7 +72,9 @@
 {literal}
 <script type="text/javascript">
 
-    function submitForm() {
+    function submitForm(e) {
+        e.preventDefault(); // 阻止默认表单提交
+
         const id = {/literal}{$id}{literal};
         const password = document.getElementById('password').value;
         const data = {