We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ce9310 commit 0c70f9fCopy full SHA for 0c70f9f
client/src/views/ChangeLogView.vue
@@ -157,7 +157,7 @@ const transformDeploymentChangelogToChangeItems = (changelogData: any[]): Change
157
const transformAlertRuleChangelogToAlarmChangeItems = (changelogData: AlertRuleChangeItem[]): AlarmChangeItem[] => {
158
return changelogData.map((item, index) => {
159
// 从scope中提取服务名
160
- const serviceName = item.scope ? item.scope.replace('service:', '') + '服务' : '全局服务'
+ const serviceName = item.scope?.startsWith('service:') ? item.scope.slice('service:'.length) + '服务' : '全局服务'
161
162
// 构建变更描述
163
const changeDescription = item.values.map(value => {
0 commit comments