refactor: 重构操作日志drawer

This commit is contained in:
dap
2025-04-04 21:06:16 +08:00
parent 542407dcd6
commit aeed0fd48e
4 changed files with 76 additions and 122 deletions

View File

@@ -116,7 +116,7 @@ export function renderHttpMethodTag(type: string) {
return <Tag color={color}>{title}</Tag>;
}
export function renderDictTag(value: string, dicts: DictData[]) {
export function renderDictTag(value: number | string, dicts: DictData[]) {
return <DictTag dicts={dicts} value={value}></DictTag>;
}
@@ -155,7 +155,7 @@ export function renderDictTags(
* @param dictName dictName
* @returns tag
*/
export function renderDict(value: string, dictName: string) {
export function renderDict(value: number | string, dictName: string) {
const dictInfo = getDictOptions(dictName);
return renderDictTag(value, dictInfo);
}