Skip to content

Commit c462bba

Browse files
author
puhui999
committed
update:添加类型解决ts报错
1 parent 581b301 commit c462bba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/views/system/sms/template/SmsTemplateForm.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<el-radio
4545
v-for="dict in getIntDictOptions(DICT_TYPE.COMMON_STATUS)"
4646
:key="dict.value"
47-
:label="parseInt(dict.value)"
47+
:label="parseInt(dict.value as string)"
4848
>
4949
{{ dict.label }}
5050
</el-radio>
@@ -96,7 +96,7 @@ const formRules = reactive({
9696
channelId: [{ required: true, message: '短信渠道编号不能为空', trigger: 'change' }]
9797
})
9898
const formRef = ref() // 表单 Ref
99-
const channelList = ref([]) // 短信渠道列表
99+
const channelList = ref<SmsChannelApi.SmsChannelVO[]>([]) // 短信渠道列表
100100
101101
const open = async (type: string, id?: number) => {
102102
modelVisible.value = true

0 commit comments

Comments
 (0)