mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-09-17 09:16:36 +08:00
feat: support new log type
This commit is contained in:
parent
fa2a772731
commit
d9f74bdff3
@ -28,6 +28,8 @@ function renderType(type) {
|
|||||||
return <Tag color="orange" size="large"> 管理 </Tag>;
|
return <Tag color="orange" size="large"> 管理 </Tag>;
|
||||||
case 4:
|
case 4:
|
||||||
return <Tag color="purple" size="large"> 系统 </Tag>;
|
return <Tag color="purple" size="large"> 系统 </Tag>;
|
||||||
|
case 5:
|
||||||
|
return <Tag color="violet" size="large"> 测试 </Tag>;
|
||||||
default:
|
default:
|
||||||
return <Tag color="black" size="large"> 未知 </Tag>;
|
return <Tag color="black" size="large"> 未知 </Tag>;
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,8 @@ const LOG_TYPE = {
|
|||||||
1: { value: '1', text: '充值', color: 'primary' },
|
1: { value: '1', text: '充值', color: 'primary' },
|
||||||
2: { value: '2', text: '消费', color: 'orange' },
|
2: { value: '2', text: '消费', color: 'orange' },
|
||||||
3: { value: '3', text: '管理', color: 'default' },
|
3: { value: '3', text: '管理', color: 'default' },
|
||||||
4: { value: '4', text: '系统', color: 'secondary' }
|
4: { value: '4', text: '系统', color: 'secondary' },
|
||||||
|
5: { value: '5', text: '测试', color: 'secondary' },
|
||||||
};
|
};
|
||||||
|
|
||||||
export default LOG_TYPE;
|
export default LOG_TYPE;
|
||||||
|
Loading…
Reference in New Issue
Block a user