Skip to content

Commit

Permalink
feat: support new log type
Browse files Browse the repository at this point in the history
  • Loading branch information
songquanpeng committed Jan 31, 2025
1 parent fa2a772 commit d9f74bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions web/air/src/components/LogsTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ function renderType(type) {
return <Tag color="orange" size="large"> 管理 </Tag>;
case 4:
return <Tag color="purple" size="large"> 系统 </Tag>;
case 5:
return <Tag color="violet" size="large"> 测试 </Tag>;
default:
return <Tag color="black" size="large"> 未知 </Tag>;
}
Expand Down
3 changes: 2 additions & 1 deletion web/berry/src/views/Log/type/LogType.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ const LOG_TYPE = {
1: { value: '1', text: '充值', color: 'primary' },
2: { value: '2', text: '消费', color: 'orange' },
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;

0 comments on commit d9f74bd

Please sign in to comment.