修复切换投影机布局的错误

This commit is contained in:
shefengchun 2023-02-24 15:33:14 +08:00
parent efb6f0437a
commit 5ce15fcb80
1 changed files with 3 additions and 1 deletions

View File

@ -693,7 +693,7 @@ export default defineComponent({
dialog_data.fun(dialog_data.parameter)
}
const re_match_data=()=>{
let tmp=allconfig
let tmp = JSON.parse($store.state.fusion_configuration);
for (let index = 0; index < options_resolution.value.length; index++) {
let arr = options_resolution.value[index].label.split('*');
if(tmp.projector_width==Number(arr[0])&&tmp.projector_height==Number(arr[1])){
@ -702,12 +702,14 @@ export default defineComponent({
}
for (let index = 0; index < projectorlayout.length; index++) {
let arr = projectorlayout[index].label.split('x');
if(tmp.row==Number(arr[0])&&tmp.col==Number(arr[1])){
now_select_projectorlayout.value=index
}
}
}
return {
allconfig,
now_selsect_projector,
re_match_data,
trigger_dialog,