@ -380,7 +380,7 @@ const MdwMessage = () => {
}}
onFinish={async (values) => {
saveOrUpdate({...values, "alias": currentTemplate?.alias})
saveOrUpdate({...values, "code": currentTemplate?.code})
columns={drawerColumns as ProFormColumnsType[]}/>
<BetaSchemaForm
@ -123,8 +123,8 @@ const MdwMessage = () => {
}
},
{
title: t(`${i18nPrefix}.columns.alias`, '模板别名'),
dataIndex: 'alias',
title: t(`${i18nPrefix}.columns.code`, '唯一code'),
dataIndex: 'code',
valueType: 'text',
fieldProps: {
maxLength: 50,
@ -6,7 +6,7 @@ export interface IMsgTemplate {
dest: string
type: string
fields: string
alias: string
code: string
export const coverType = (type: string) => {