diff --git a/src/views/device/Instance/Detail/Function/components/Simple.vue b/src/views/device/Instance/Detail/Function/components/Simple.vue
index 93f4cd82..fb0f2247 100644
--- a/src/views/device/Instance/Detail/Function/components/Simple.vue
+++ b/src/views/device/Instance/Detail/Function/components/Simple.vue
@@ -61,26 +61,10 @@
"
:itemType="record.type"
:options="
- record.type === 'enum'
- ? (
- record?.options
- ?.elements || []
- ).map((item:any) => ({
- label: item.text,
- value: item.value,
- }))
- : record.type === 'boolean'
- ? [
- {
- label: '是',
- value: true,
- },
- {
- label: '否',
- value: false,
- },
- ]
- : undefined
+ (record?.options || []).map((item:any) => ({
+ label: item.text,
+ value: item.value,
+ }))
"
/>
@@ -107,7 +91,10 @@
执行结果:
-
+
{{ func.executeResult }}