Просмотр исходного кода

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.
CalciumIon 1 год назад
Родитель
Сommit
a5c48c2772
1 измененных файлов с 4 добавлено и 5 удалено
  1. 4 5
      web/src/components/LogsTable.js

+ 4 - 5
web/src/components/LogsTable.js

@@ -25,7 +25,7 @@ import {
 } from '@douyinfe/semi-ui';
 import { ITEMS_PER_PAGE } from '../constants';
 import {
-  renderAudioModelPrice,
+  renderAudioModelPrice, renderGroup,
   renderModelPrice, renderModelPriceSimple,
   renderNumber,
   renderQuota,
@@ -228,10 +228,9 @@ const LogsTable = () => {
           }
           if (other.group !== undefined) {
             return (
-              <Tag color='blue' size='large'>
-                {' '}
-                {other.group}{' '}
-              </Tag>
+              <>
+                {renderGroup(other.group)}
+              </>
             );
           } else {
             return <></>;