优化ui细节

This commit is contained in:
shefengchun 2023-03-01 13:47:26 +08:00
parent 14076866ec
commit 75311073cb
1 changed files with 2 additions and 2 deletions

View File

@ -717,14 +717,14 @@ export default defineComponent({
let tmp = JSON.parse($store.state.fusion_configuration); let tmp = JSON.parse($store.state.fusion_configuration);
for (let index = 0; index < options_resolution.value.length; index++) { for (let index = 0; index < options_resolution.value.length; index++) {
let arr = options_resolution.value[index].label.split('*'); let arr = options_resolution.value[index].label.split('*');
if(tmp.projector_width==Number(arr[1])&&tmp.projector_height==Number(arr[0])){ if(tmp.projector_width==Number(arr[0])&&tmp.projector_height==Number(arr[1])){
now_resolution.value=index now_resolution.value=index
} }
} }
for (let index = 0; index < projectorlayout.value.length; index++) { for (let index = 0; index < projectorlayout.value.length; index++) {
let arr = projectorlayout.value[index].label.split('x'); let arr = projectorlayout.value[index].label.split('x');
if(tmp.row==Number(arr[1])&&tmp.col==Number(arr[0])){ if(tmp.row==Number(arr[0])&&tmp.col==Number(arr[1])){
now_select_projectorlayout.value=index now_select_projectorlayout.value=index
} }
} }