feat: update id render to support number format

Update the getIdRender func to support resource id of numeric type

Change-Id: I0bec014d1b8e1726ae6092f8d2dd0710151283fb
This commit is contained in:
Jingwei.Zhang 2022-10-12 10:02:19 +08:00
parent 27f127f86d
commit fb3078f740

View File

@ -160,7 +160,7 @@ const getLinkUrl = (prefix, id) => {
};
export const getIdRender = (value, copyable = true, isLink = true) => {
const short = (value || '').substring(0, 8);
const short = `${value || ''}`.substring(0, 8);
const shortRender = isLink ? (
<span className="link-class">{short}</span>
) : (