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赋值给密码输入框 }); } /** 修改按钮操作 */