fix: 修改物模型规则初始无法修改问题
This commit is contained in:
parent
716df45891
commit
166d99b019
|
@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue