Skip to content

Commit c5d007e

Browse files
fanb129wanghe-fit2cloud
authored andcommitted
fix: 修复“修改文件权限时,文件所属用户和用户组不显示”问题 (#6698)
1 parent da249a2 commit c5d007e

File tree

1 file changed

+2
-2
lines changed
  • frontend/src/views/host/file-management/batch-role

1 file changed

+2
-2
lines changed

frontend/src/views/host/file-management/batch-role/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ const acceptParams = (props: BatchRoleProps) => {
8181
addForm.paths.push(file.path);
8282
});
8383
addForm.mode = Number.parseInt(String(props.files[0].mode), 8);
84-
addForm.group = props.files[0].group;
85-
addForm.user = props.files[0].user;
84+
addForm.group = props.files[0].group || props.files[0].gid;
85+
addForm.user = props.files[0].user || props.files[0].uid;
8686
addForm.sub = true;
8787
8888
mode.value = String(props.files[0].mode);

0 commit comments

Comments
 (0)