From f77d0a256789c77abdaeb53638c91b80d9b66129 Mon Sep 17 00:00:00 2001 From: wzk <2438381872@qq.com> Date: Mon, 3 Nov 2025 17:38:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=94=A8=E6=88=B7=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E5=AF=86=E7=A0=81=E7=B3=BB=E7=BB=9F=E5=8F=AF=E4=BB=A5?= =?UTF-8?q?=E8=87=AA=E5=8A=A8=E8=B5=8B=E5=80=BC=E4=B8=80=E4=B8=AA=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=AF=86=E7=A0=81=EF=BC=8C123456=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openhis-ui-vue3/src/views/system/user/index.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openhis-ui-vue3/src/views/system/user/index.vue b/openhis-ui-vue3/src/views/system/user/index.vue index 24b96083..266a5a68 100644 --- a/openhis-ui-vue3/src/views/system/user/index.vue +++ b/openhis-ui-vue3/src/views/system/user/index.vue @@ -614,7 +614,7 @@ const deptName = ref(''); const deptOptions = ref(undefined); const wardListOptions = ref(undefined); const locationOptions = ref([]); -const initPassword = ref(undefined); +const initPassword = ref('123456'); const postOptions = ref([]); const roleOptions = ref([]); const doctorShow = ref(true); @@ -904,7 +904,8 @@ function handleAdd() { locationAdminShow.value = true; pharmacyShow.value = true; title.value = '添加用户'; - form.value.password = initPassword.value; + // 强制赋值初始密码(覆盖原逻辑,确保一定生效) + form.value.password = initPassword.value; // 这里会将123456赋值给密码输入框 }); } /** 修改按钮操作 */