Commit 3e068430 authored by 皮倩雯's avatar 皮倩雯

fix: '优化'

parent cda0cd6d
Pipeline #82581 passed with stages
......@@ -213,7 +213,7 @@ const UserManage = () => {
key: 'groupLevel',
// width: 150,
ellipsis: true,
render: text => {
render: (text, record) => {
let arr = text?.split('/');
if (arr?.length > 2) {
let str = `${arr[0]}/.../${arr[arr.length - 1]}`;
......@@ -222,8 +222,13 @@ const UserManage = () => {
<span>{str}</span>
</Tooltip>
);
} else {
if (arr) {
return <span>{text}</span>;
} else {
return <span>{record.groupName}</span>;
}
}
return <span>{text}</span>;
},
},
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment