diff --git a/apps/web-antd/src/views/iot/thingmodel/index.vue b/apps/web-antd/src/views/iot/thingmodel/index.vue index ada97aeb9..dbb75eb04 100644 --- a/apps/web-antd/src/views/iot/thingmodel/index.vue +++ b/apps/web-antd/src/views/iot/thingmodel/index.vue @@ -2,7 +2,7 @@ import type { Ref } from 'vue'; import type { IotProductApi } from '#/api/iot/product/product'; -import type { ThingModelData } from '#/api/iot/thingmodel'; +import type { ThingModelApi } from '#/api/iot/thingmodel'; import { computed, inject } from 'vue'; @@ -46,12 +46,12 @@ function handleCreate() { } /** 编辑物模型 */ -function handleEdit(row: ThingModelData) { +function handleEdit(row: ThingModelApi.ThingModel) { formModalApi.setData({ id: row.id }).open(); } /** 删除物模型 */ -async function handleDelete(row: ThingModelData) { +async function handleDelete(row: ThingModelApi.ThingModel) { const hideLoading = message.loading({ content: $t('ui.actionMessage.deleting', [row.name]), duration: 0, diff --git a/apps/web-antd/src/views/iot/thingmodel/modules/components/data-definition.vue b/apps/web-antd/src/views/iot/thingmodel/modules/components/data-definition.vue index 3f5aaf1dd..1d0b5c1ea 100644 --- a/apps/web-antd/src/views/iot/thingmodel/modules/components/data-definition.vue +++ b/apps/web-antd/src/views/iot/thingmodel/modules/components/data-definition.vue @@ -1,5 +1,5 @@