🐛 修复 notify 在 IDEA 报错的问题

This commit is contained in:
YunaiV
2023-12-02 20:25:29 +08:00
parent b103c40874
commit 5766dc81d1
9 changed files with 16 additions and 15 deletions

View File

@ -49,7 +49,7 @@ defineOptions({ name: 'SystemNotifyMessageDetail' })
const dialogVisible = ref(false) // 弹窗的是否展示
const detailLoading = ref(false) // 表单的加载中
const detailData = ref() // 详情数据
const detailData = ref({} as NotifyMessageApi.NotifyMessageVO) // 详情数据
/** 打开弹窗 */
const open = async (data: NotifyMessageApi.NotifyMessageVO) => {

View File

@ -28,7 +28,7 @@
>
<el-option
v-for="dict in getIntDictOptions(DICT_TYPE.USER_TYPE)"
:key="dict.value"
:key="dict.value as number"
:label="dict.label"
:value="dict.value"
/>
@ -52,7 +52,7 @@
>
<el-option
v-for="dict in getIntDictOptions(DICT_TYPE.SYSTEM_NOTIFY_TEMPLATE_TYPE)"
:key="dict.value"
:key="dict.value as number"
:label="dict.label"
:value="dict.value"
/>