mirror of
https://github.com/APIParkLab/APIPark.git
synced 2026-06-04 10:13:53 +08:00
feature/1.8-Improve system observability
This commit is contained in:
@@ -103,7 +103,7 @@ const LogDetail = ({ selectedRow, serviceType, serviceId, teamId }: LogDetailPro
|
||||
*/
|
||||
const renderStatusWithColor = (status: string) => {
|
||||
// 获取状态码首位数字
|
||||
const firstDigit = status.charAt(0)
|
||||
const firstDigit = String(status).charAt(0)
|
||||
let color = ''
|
||||
switch (firstDigit) {
|
||||
case '2':
|
||||
@@ -308,10 +308,12 @@ const LogDetail = ({ selectedRow, serviceType, serviceId, teamId }: LogDetailPro
|
||||
isSystemConsumer: result.isSystemConsumer
|
||||
})
|
||||
setRequestInfoData({
|
||||
Header: result.request.header
|
||||
Header: result.request.header,
|
||||
Body: result.response.body
|
||||
})
|
||||
setResponseInfoData({
|
||||
Header: result.response.header
|
||||
Header: result.response.header,
|
||||
Body: result.response.body
|
||||
})
|
||||
} else {
|
||||
message.error(msg || $t(RESPONSE_TIPS.error))
|
||||
|
||||
@@ -69,7 +69,7 @@ const RankingList = ({ topRankingList, serviceType }: { topRankingList: RankingL
|
||||
}}
|
||||
>
|
||||
<div className="mb-[10px]">
|
||||
<span className="text-[14px] text-[#999] font-medium">{item === 'TOP API' ? $t('API 使用排名') : $t('消费者使用排名')}</span>
|
||||
<span className="text-[14px] text-[#888]" style={{ fontFamily: 'Microsoft YaHei' }}>{item === 'TOP API' ? $t('API 使用排名') : $t('消费者使用排名')}</span>
|
||||
</div>
|
||||
<PageList
|
||||
id={item}
|
||||
|
||||
Reference in New Issue
Block a user