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

fix: '优化'

parent cda0cd6d
Pipeline #82581 passed with stages
...@@ -213,7 +213,7 @@ const UserManage = () => { ...@@ -213,7 +213,7 @@ const UserManage = () => {
key: 'groupLevel', key: 'groupLevel',
// width: 150, // width: 150,
ellipsis: true, ellipsis: true,
render: text => { render: (text, record) => {
let arr = text?.split('/'); let arr = text?.split('/');
if (arr?.length > 2) { if (arr?.length > 2) {
let str = `${arr[0]}/.../${arr[arr.length - 1]}`; let str = `${arr[0]}/.../${arr[arr.length - 1]}`;
...@@ -222,8 +222,13 @@ const UserManage = () => { ...@@ -222,8 +222,13 @@ const UserManage = () => {
<span>{str}</span> <span>{str}</span>
</Tooltip> </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