Open
Conversation
- 修改 OpsErrorLogTable 组件,根据 errorType 动态显示列名 - 上游错误显示账号,请求错误显示用户/账号 - OpsErrorDetailsModal 透传 errorType 给表格组件 - 添加 i18n 翻译键 userOrAccount
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
修正运维监控错误日志表格列名显示
问题描述
在运维监控页面中,请求错误和上游错误的明细表格都有一个"用户"列,但实际数据内容不一致:
列名固定显示"用户",但实际数据可能是账号,语义不符。
解决方案
OpsErrorLogTable.vue
errorTypeprop('request' | 'upstream')errorType动态显示:errorType === 'upstream'→ 显示"账号"OpsErrorDetailsModal.vue
errorTypeprop 给OpsErrorLogTable组件i18n (zh.ts)
userOrAccount: '用户/账号'修改文件
frontend/src/views/admin/ops/components/OpsErrorLogTable.vuefrontend/src/views/admin/ops/components/OpsErrorDetailsModal.vuefrontend/src/i18n/locales/zh.ts测试