mirror of
				https://github.com/songquanpeng/one-api.git
				synced 2025-11-04 15:53:42 +08:00 
			
		
		
		
	feat: support new log type
This commit is contained in:
		@@ -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>;
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
@@ -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;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user