fix: 修改物模型规则初始无法修改问题
This commit is contained in:
parent
716df45891
commit
166d99b019
|
@ -42,9 +42,7 @@ import { getStreamingAggType } from '@/api/device/product'
|
|||
const props = defineProps({
|
||||
value: {
|
||||
type: Object,
|
||||
default: () => ({
|
||||
type: 'script',
|
||||
})
|
||||
default: () => ({})
|
||||
},
|
||||
name: {
|
||||
type: Array as PropType<(string| number)[]>,
|
||||
|
@ -89,7 +87,7 @@ const changeWindow = (val: boolean | string | number) => {
|
|||
props.value.window = {}
|
||||
}
|
||||
} else {
|
||||
delete props.value.type
|
||||
props.value.type = 'script'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue