From 5eede46d2d03dc886469ba8db249de2b85ee1b71 Mon Sep 17 00:00:00 2001 From: Shu Guang <61069967+shuguangnet@users.noreply.github.com> Date: Sat, 24 May 2025 17:45:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(admin):=20=E4=BF=AE=E5=A4=8D=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E8=A1=A8=E5=8D=95=E6=8F=90=E4=BA=A4=E6=97=B6=E7=BC=BA?= =?UTF-8?q?=E5=B0=91user=5Fid=E5=AD=97=E6=AE=B5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在saveUser函数中添加user_id字段,确保提交的用户数据包含user_id。同时,更新HTML表单元素的name属性,使其与后端API字段匹配,避免数据提交时出现字段缺失或不匹配的问题。 --- admin/index.html | 21 +++++++++++---------- admin/js/admin.js | 3 ++- 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/admin/index.html b/admin/index.html index c5ddaca..f4f2c1c 100644 --- a/admin/index.html +++ b/admin/index.html @@ -242,18 +242,19 @@