修复首页数据 不同步

This commit is contained in:
shefengchun 2023-02-24 17:36:13 +08:00
parent 55b518facc
commit 48466524bb
1 changed files with 4 additions and 4 deletions

View File

@ -134,6 +134,7 @@ export default defineComponent({
value.value = [] value.value = []
value_point.value = [] value_point.value = []
for (let index = 0; index < config.point4.length; index++) { for (let index = 0; index < config.point4.length; index++) {
let tmp: DensityCorrectionPoint = config.point4[index]; let tmp: DensityCorrectionPoint = config.point4[index];
value.value.push(tmp) value.value.push(tmp)
let x_y = coordinate_transformation_value_to_xy(tmp.x, tmp.y) let x_y = coordinate_transformation_value_to_xy(tmp.x, tmp.y)
@ -334,10 +335,9 @@ export default defineComponent({
Proportion.value.x = allconfig.projector_width / (div.value.offsetWidth - point.value.w) Proportion.value.x = allconfig.projector_width / (div.value.offsetWidth - point.value.w)
Proportion.value.y = allconfig.projector_height / (div.value.offsetHeight - point.value.h) Proportion.value.y = allconfig.projector_height / (div.value.offsetHeight - point.value.h)
set?.GetBlendingConfig("").then((res) => { set?.GetBlendingConfig("").then((res) => {
allconfig=JSON.parse(res?.config??"") config=JSON.parse(res?.config??"").projectors[selectedprojector.value];
})
start_point() start_point()
start() //start()
use_server_config() use_server_config()
if ( if (
sessionStorage.FourPointCalibration && sessionStorage.FourPointCalibration &&
@ -345,7 +345,7 @@ export default defineComponent({
) { ) {
set_cache.value = JSON.parse(sessionStorage.FourPointCalibration); set_cache.value = JSON.parse(sessionStorage.FourPointCalibration);
use_set_cache(); use_set_cache();
} }})
window.onresize = () => { window.onresize = () => {
return (() => { return (() => {
if (div != null) { if (div != null) {