fix: 修复通知人页面
This commit is contained in:
parent
9dcb53905f
commit
75a12598ae
@ -44,9 +44,9 @@ export const idGeneratorModeRecord: Record<Api.GroupConfig.IdGeneratorModeType,
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const alarmTypeRecord: Record<Api.NotifyRecipient.AlarmType, App.I18n.I18nKey> = {
|
export const alarmTypeRecord: Record<Api.NotifyRecipient.AlarmType, App.I18n.I18nKey> = {
|
||||||
'1': 'page.notifyRecipient.dingDing',
|
1: 'page.notifyRecipient.dingDing',
|
||||||
'2': 'page.notifyRecipient.email',
|
2: 'page.notifyRecipient.email',
|
||||||
'3': 'page.notifyRecipient.weCom',
|
3: 'page.notifyRecipient.weCom',
|
||||||
'4': 'page.notifyRecipient.lark'
|
4: 'page.notifyRecipient.lark'
|
||||||
};
|
};
|
||||||
export const alarmTypeRecordOptions = transformRecordToOption(alarmTypeRecord);
|
export const alarmTypeRecordOptions = transformRecordToOption(alarmTypeRecord);
|
||||||
|
@ -30,7 +30,7 @@ export function transformRecordToOption<T extends Record<string, string>>(record
|
|||||||
*
|
*
|
||||||
* @param options
|
* @param options
|
||||||
*/
|
*/
|
||||||
export function translateOptions(options: CommonType.Option<string>[]) {
|
export function translateOptions(options: CommonType.Option<string | number>[]) {
|
||||||
return options.map(option => ({
|
return options.map(option => ({
|
||||||
...option,
|
...option,
|
||||||
label: $t(option.label as App.I18n.I18nKey)
|
label: $t(option.label as App.I18n.I18nKey)
|
||||||
|
Loading…
Reference in New Issue
Block a user