新增用户用户密码系统可以自动赋值一个初始密码,123456。

This commit is contained in:
2025-11-03 17:38:55 +08:00
parent 4b3471df06
commit f77d0a2567

View File

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