diff --git a/web/src/components/table/channels/modals/CodexUsageModal.jsx b/web/src/components/table/channels/modals/CodexUsageModal.jsx
index cc454891..1a42eafd 100644
--- a/web/src/components/table/channels/modals/CodexUsageModal.jsx
+++ b/web/src/components/table/channels/modals/CodexUsageModal.jsx
@@ -25,6 +25,8 @@ import {
Typography,
Spin,
Tag,
+ Descriptions,
+ Collapse,
} from '@douyinfe/semi-ui';
import { API, showError } from '../../../../helpers';
@@ -181,35 +183,30 @@ const resolveUsageStatusTag = (t, rateLimit) => {
return {tt('受限')};
};
-const AccountInfoCard = ({ t, label, value, onCopy, monospace = false }) => {
+const AccountInfoValue = ({ t, value, onCopy, monospace = false }) => {
const tt = typeof t === 'function' ? t : (v) => v;
const text = getDisplayText(value);
const hasValue = text !== '';
return (
-
-
- {label}
-
-
-
- {hasValue ? text : '-'}
-
-
+
+
+ {hasValue ? text : '-'}
+
);
};
@@ -321,22 +318,28 @@ const CodexUsageView = ({ t, record, payload, onCopy, onRefresh }) => {
-
-
-
-
+
@@ -370,37 +373,30 @@ const CodexUsageView = ({ t, record, payload, onCopy, onRefresh }) => {
/>
-
-
-
{tt('原始 JSON')}
-
+
{
+ const keys = Array.isArray(activeKey) ? activeKey : [activeKey];
+ setShowRawJson(keys.includes('raw-json'));
+ }}
+ >
+
+
- {showRawJson && (
-
- )}
-
- {showRawJson && (
{rawText}
- )}
-
+
+
);
};