From 23c657bfcbb29f3af8951da402fd6021bf896701 Mon Sep 17 00:00:00 2001 From: fangxiang Date: Mon, 4 Jul 2022 14:26:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=8C=96=E9=80=BB=E8=BE=91,=E9=81=BF=E5=85=8D?= =?UTF-8?q?=E8=AF=B7=E6=B1=82=E4=B8=A4=E6=AC=A1=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/Initializer.ts | 8 ++++++-- src/pad/Index.vue | 6 +++--- src/pages/Index.vue | 6 +++--- 3 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/common/Initializer.ts b/src/common/Initializer.ts index e99cf34..04fe9a3 100644 --- a/src/common/Initializer.ts +++ b/src/common/Initializer.ts @@ -145,7 +145,12 @@ export default class Initializer { let $store = options.$store; if (windows && $store) { $store.commit("clearWindows"); - $store.commit("setWindows", windows); + setTimeout(() => { + $store.commit("setWindows", []); + setTimeout(() => { + $store.commit("setWindows", windows); + }, 300); + }, 300); } } @@ -167,7 +172,6 @@ export default class Initializer { async initialize() { const options = this.options; const $store = options.$store; - const global_data = GlobalData.getInstance(); let client = global_data.getCurrentClient(); if (client) { diff --git a/src/pad/Index.vue b/src/pad/Index.vue index 21102be..786270b 100644 --- a/src/pad/Index.vue +++ b/src/pad/Index.vue @@ -30,9 +30,9 @@ export default defineComponent({ $q, }; - new Initializer(options).initialize().then(() => { - $store.commit("setInitialized"); - }); + // new Initializer(options).initialize().then(() => { + // $store.commit("setInitialized"); + // }); const remote_data_exange_processer = new RemoteDataExangeProcesser(options); remote_data_exange_processer.enable(); diff --git a/src/pages/Index.vue b/src/pages/Index.vue index aa92be4..738b21f 100644 --- a/src/pages/Index.vue +++ b/src/pages/Index.vue @@ -31,9 +31,9 @@ export default defineComponent({ $q, }; - new Initializer(options).initialize().then(() => { - $store.commit("setInitialized"); - }); + // new Initializer(options).initialize().then(() => { + // $store.commit("setInitialized"); + // }); const remote_data_exange_processer = new RemoteDataExangeProcesser(options); remote_data_exange_processer.enable();