fix: sms template

pull/7/head
xingyu 2023-05-04 16:54:46 +08:00
parent 791976b884
commit 85fb61a4fe
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ export const useRender = {
*/ */
renderDict: (text, type, dictType?) => { renderDict: (text, type, dictType?) => {
if (type) { if (type) {
return h(DictTag, { type: type, value: text, dictType: dictType || 'number' }) return h(DictTag, { type: type, value: text, dictType: dictType })
} }
return '' return ''
}, },

View File

@ -19,7 +19,7 @@ export const columns: BasicColumn[] = [
}, },
{ {
title: '短信类型', title: '短信类型',
dataIndex: 'status', dataIndex: 'type',
width: 180, width: 180,
customRender: ({ text }) => { customRender: ({ text }) => {
return useRender.renderDict(text, DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE) return useRender.renderDict(text, DICT_TYPE.SYSTEM_SMS_TEMPLATE_TYPE)