修改融合带值保证为偶数
This commit is contained in:
parent
61b3766012
commit
6360f499da
|
@ -432,7 +432,11 @@ export default defineComponent({
|
||||||
array[1].isshow,
|
array[1].isshow,
|
||||||
Number(array[1].value)
|
Number(array[1].value)
|
||||||
);
|
);
|
||||||
if (auto_sync.value) left_right_auto_add(newVal);
|
if (auto_sync.value){
|
||||||
|
left_right_auto_add(Number(newVal)%2==0?newVal:Number(newVal)+1);
|
||||||
|
|
||||||
|
}
|
||||||
|
Number(newVal)%2!=0?array[1].value=Number(array[1].value)+1:''
|
||||||
save_set_cache();
|
save_set_cache();
|
||||||
},
|
},
|
||||||
{ deep: true }
|
{ deep: true }
|
||||||
|
@ -448,7 +452,8 @@ export default defineComponent({
|
||||||
array[2].isshow,
|
array[2].isshow,
|
||||||
Number(array[2].value)
|
Number(array[2].value)
|
||||||
);
|
);
|
||||||
if (auto_sync.value) left_right_auto_add(newVal);
|
if (auto_sync.value) left_right_auto_add(Number(newVal)%2==0?newVal:Number(newVal)+1);
|
||||||
|
Number(newVal)%2!=0?array[2].value=Number(array[2].value)+1:''
|
||||||
save_set_cache();
|
save_set_cache();
|
||||||
},
|
},
|
||||||
{ deep: true }
|
{ deep: true }
|
||||||
|
@ -546,7 +551,7 @@ export default defineComponent({
|
||||||
$store.commit("setenablefusion", enablefusion.value);
|
$store.commit("setenablefusion", enablefusion.value);
|
||||||
};
|
};
|
||||||
const left_right_auto_add = (difference: number) => {
|
const left_right_auto_add = (difference: number) => {
|
||||||
|
console.log("🚀 ~ file: FusionLocale.vue:616 ~ setup ~ difference:", difference)
|
||||||
let tmpobjall = JSON.parse($store.state.fusion_configuration)
|
let tmpobjall = JSON.parse($store.state.fusion_configuration)
|
||||||
if ($store.getters.GetTheCurrentlySelectedCamera[1] == 0) {
|
if ($store.getters.GetTheCurrentlySelectedCamera[1] == 0) {
|
||||||
|
|
||||||
|
|
|
@ -245,11 +245,6 @@ export default defineComponent({
|
||||||
{ deep: true }
|
{ deep: true }
|
||||||
);
|
);
|
||||||
|
|
||||||
// watch(()=>now_amount,(newVal, oldVal)=>{
|
|
||||||
// console.log("🚀 ~ file: SurfaceCorrection.vue:244 ~ watch ~ newVal:", newVal)
|
|
||||||
|
|
||||||
// },
|
|
||||||
// { deep: true })
|
|
||||||
|
|
||||||
const set_cache: any = ref([]);
|
const set_cache: any = ref([]);
|
||||||
//值
|
//值
|
||||||
|
|
Loading…
Reference in New Issue