[pricelist][calculation] fixed overloade
This commit is contained in:
parent
f5b370e743
commit
89cd109587
|
@ -68,8 +68,8 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
setup(props) {
|
setup(props) {
|
||||||
const _volume = ref<number>();
|
const _volume = ref<number|undefined>();
|
||||||
const volume = computed({
|
const volume = computed<number|undefined>({
|
||||||
get: () => {
|
get: () => {
|
||||||
if (_volume.value !== undefined) {
|
if (_volume.value !== undefined) {
|
||||||
return _volume.value;
|
return _volume.value;
|
||||||
|
@ -77,9 +77,9 @@ export default defineComponent({
|
||||||
if (props.props.volumes.length > 0) {
|
if (props.props.volumes.length > 0) {
|
||||||
return props.props.volumes[0].id;
|
return props.props.volumes[0].id;
|
||||||
}
|
}
|
||||||
return null;
|
return undefined;
|
||||||
},
|
},
|
||||||
set: (val: number) => (_volume.value = val),
|
set: (val: number|undefined) => (_volume.value = val),
|
||||||
});
|
});
|
||||||
return { volume };
|
return { volume };
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue