Commit 191131b2 by CalciumIon

feat: Enhance LogsTable to render group information

- Added `renderGroup` function to improve the display of log data by rendering the 'group' information in the LogsTable component.
- Updated the rendering logic to utilize the new function, enhancing the UI's clarity and usability for grouped logs.
parent 095277e6
...@@ -25,7 +25,7 @@ import { ...@@ -25,7 +25,7 @@ import {
} from '@douyinfe/semi-ui'; } from '@douyinfe/semi-ui';
import { ITEMS_PER_PAGE } from '../constants'; import { ITEMS_PER_PAGE } from '../constants';
import { import {
renderAudioModelPrice, renderAudioModelPrice, renderGroup,
renderModelPrice, renderModelPriceSimple, renderModelPrice, renderModelPriceSimple,
renderNumber, renderNumber,
renderQuota, renderQuota,
...@@ -228,10 +228,9 @@ const LogsTable = () => { ...@@ -228,10 +228,9 @@ const LogsTable = () => {
} }
if (other.group !== undefined) { if (other.group !== undefined) {
return ( return (
<Tag color='blue' size='large'> <>
{' '} {renderGroup(other.group)}
{other.group}{' '} </>
</Tag>
); );
} else { } else {
return <></>; return <></>;
......
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 sign in to comment