From 361bcb7719cd29d06705b37b1588f15874c84d35 Mon Sep 17 00:00:00 2001 From: shefengchun <1077478963@qq.com> Date: Thu, 23 Feb 2023 17:31:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E6=98=AF=E5=90=A6?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E6=93=8D=E4=BD=9C=E4=B8=8D=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/FusionSettings/FusionLocale.vue | 10 +++++++--- src/components/FusionSettingsDialog.vue | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/FusionSettings/FusionLocale.vue b/src/components/FusionSettings/FusionLocale.vue index 7c4d431..f0f1300 100644 --- a/src/components/FusionSettings/FusionLocale.vue +++ b/src/components/FusionSettings/FusionLocale.vue @@ -62,7 +62,7 @@ ]" />
{{ $t('Whether to operate synchronously') }}
+ v-model="auto_sync" @update:model-value="()=>{}" /> @@ -397,12 +397,15 @@ export default defineComponent({ ste_status.value = 0; }, 100); }) + if(sessionStorage.FusionLocale_async)auto_sync.value=sessionStorage.FusionLocale_async=='true' + console.log("🚀 ~ file: FusionLocale.vue:401 ~ onMounted ~ sessionStorage.FusionLocale_async:", sessionStorage.FusionLocale_async) }), onBeforeUnmount(() => { sessionStorage.FusionLocale = JSON.stringify(set_cache.value); + sessionStorage.FusionLocale_async=auto_sync.value }); watch( @@ -550,7 +553,7 @@ export default defineComponent({ let tmpobjall = JSON.parse($store.state.fusion_configuration) if ($store.getters.GetTheCurrentlySelectedCamera[1] == 0) { - let tmp = set_cache.value[1] == null ? tmpobjall.projectors[1].params : JSON.parse(set_cache.value[1]); + let tmp = set_cache.value[1].array == null ? tmpobjall.projectors[1].params : JSON.parse(set_cache.value[1]).array; let set_cache_tmp: any = [] if (tmp[1].hasOwnProperty("power")) { for (let index = 0; index < 4; index++) { @@ -609,7 +612,8 @@ export default defineComponent({ auxiliary_line, reset, auto_sync, - config + config, + save_set_cache }; }, }); diff --git a/src/components/FusionSettingsDialog.vue b/src/components/FusionSettingsDialog.vue index 431b9fd..45cd13f 100644 --- a/src/components/FusionSettingsDialog.vue +++ b/src/components/FusionSettingsDialog.vue @@ -354,6 +354,7 @@ export default defineComponent({ sessionStorage.removeItem("FourPointCalibration"); sessionStorage.removeItem("GridSettings"); sessionStorage.removeItem("Debugging"); + sessionStorage.removeItem("FusionLocale_async"); } const config = ref({ col: 0, row: 0 });