fix: 修改物模型规则初始无法修改问题

This commit is contained in:
wangshuaiswim 2023-03-28 15:10:07 +08:00
parent 716df45891
commit 166d99b019
1 changed files with 2 additions and 4 deletions

View File

@ -42,9 +42,7 @@ import { getStreamingAggType } from '@/api/device/product'
const props = defineProps({ const props = defineProps({
value: { value: {
type: Object, type: Object,
default: () => ({ default: () => ({})
type: 'script',
})
}, },
name: { name: {
type: Array as PropType<(string| number)[]>, type: Array as PropType<(string| number)[]>,
@ -89,7 +87,7 @@ const changeWindow = (val: boolean | string | number) => {
props.value.window = {} props.value.window = {}
} }
} else { } else {
delete props.value.type props.value.type = 'script'
} }
} }