Browse Source

别名优化

main
cs 2 months ago
parent
commit
1f8fda8bd4
  1. 2
      src/pages/message/my/index.tsx
  2. 4
      src/pages/message/template/index.tsx
  3. 2
      src/types/message/template.ts

2
src/pages/message/my/index.tsx

@ -380,7 +380,7 @@ const MdwMessage = () => {
}}
onFinish={async (values) => {
saveOrUpdate({...values, "alias": currentTemplate?.alias})
saveOrUpdate({...values, "code": currentTemplate?.code})
}}
columns={drawerColumns as ProFormColumnsType[]}/>
<BetaSchemaForm

4
src/pages/message/template/index.tsx

@ -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,

2
src/types/message/template.ts

@ -6,7 +6,7 @@ export interface IMsgTemplate {
dest: string
type: string
fields: string
alias: string
code: string
}
export const coverType = (type: string) => {

Loading…
Cancel
Save