feat: log shows request conversion

This commit is contained in:
Seefs
2026-01-20 23:43:29 +08:00
parent 57ed2b3dae
commit d4582ede98
15 changed files with 151 additions and 18 deletions

View File

@@ -476,10 +476,17 @@ export const useLogsData = () => {
});
}
}
if (other?.request_path) {
if (isAdminUser) {
const requestConversionChain = other?.request_conversion;
const chain = Array.isArray(requestConversionChain)
? requestConversionChain.filter(Boolean)
: [];
expandDataLocal.push({
key: t('请求路径'),
value: other.request_path,
key: t('请求转换'),
value:
chain.length > 1
? `${chain.join(' -> ')}`
: t('原生格式'),
});
}
if (isAdminUser) {

View File

@@ -2091,6 +2091,9 @@
"请求结束后多退少补": "Adjust after request completion",
"请求超时,请刷新页面后重新发起 GitHub 登录": "Request timed out, please refresh and restart GitHub login",
"请求路径": "Request path",
"请求转换": "Request conversion",
"原生格式": "Native format",
"转换": "Convert",
"请求预扣费额度": "Pre-deduction quota for requests",
"请点击我": "Please click me",
"请确认以下设置信息,点击\"初始化系统\"开始配置": "Please confirm the following settings information, click \"Initialize system\" to start configuration",

View File

@@ -2077,6 +2077,9 @@
"请求结束后多退少补": "请求结束后多退少补",
"请求超时,请刷新页面后重新发起 GitHub 登录": "请求超时,请刷新页面后重新发起 GitHub 登录",
"请求路径": "请求路径",
"请求转换": "请求转换",
"原生格式": "原生格式",
"转换": "转换",
"请求预扣费额度": "请求预扣费额度",
"请点击我": "请点击我",
"请确认以下设置信息,点击\"初始化系统\"开始配置": "请确认以下设置信息,点击\"初始化系统\"开始配置",