修复首页数据 不同步

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_point.value = []
for (let index = 0; index < config.point4.length; index++) {
let tmp: DensityCorrectionPoint = config.point4[index];
value.value.push(tmp)
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.y = allconfig.projector_height / (div.value.offsetHeight - point.value.h)
set?.GetBlendingConfig("").then((res) => {
allconfig=JSON.parse(res?.config??"")
})
config=JSON.parse(res?.config??"").projectors[selectedprojector.value];
start_point()
start()
//start()
use_server_config()
if (
sessionStorage.FourPointCalibration &&
@ -345,7 +345,7 @@ export default defineComponent({
) {
set_cache.value = JSON.parse(sessionStorage.FourPointCalibration);
use_set_cache();
}
}})
window.onresize = () => {
return (() => {
if (div != null) {