1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-13 17:24:44 +08:00

fix: 修复“修改文件权限时,文件所属用户和用户组不显示”问题 (#6698)

This commit is contained in:
wild_pointer 2024-10-14 10:24:48 +08:00 committed by GitHub
parent 175b7b89e4
commit eb99c10ad0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -81,8 +81,8 @@ const acceptParams = (props: BatchRoleProps) => {
addForm.paths.push(file.path);
});
addForm.mode = Number.parseInt(String(props.files[0].mode), 8);
addForm.group = props.files[0].group;
addForm.user = props.files[0].user;
addForm.group = props.files[0].group || props.files[0].gid;
addForm.user = props.files[0].user || props.files[0].uid;
addForm.sub = true;
mode.value = String(props.files[0].mode);