From 6e829b06c6c85e1c28aa78076025688de8881ab1 Mon Sep 17 00:00:00 2001 From: fangxiang Date: Fri, 2 Sep 2022 16:58:33 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=89=E5=8D=93=E6=96=AD=E7=BA=BF=E9=87=8D?= =?UTF-8?q?=E8=BF=9E=E6=97=B6=E5=88=B7=E6=96=B0=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pad/Index.vue | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pad/Index.vue b/src/pad/Index.vue index 786270b..56afd32 100644 --- a/src/pad/Index.vue +++ b/src/pad/Index.vue @@ -37,7 +37,9 @@ export default defineComponent({ const remote_data_exange_processer = new RemoteDataExangeProcesser(options); remote_data_exange_processer.enable(); + let disconnect_flag = false; EventBus.getInstance().on(EventNamesDefine.CurrentConnectDisconnect, () => { + disconnect_flag = true; $q.loading.show({ html: true, message: @@ -53,6 +55,12 @@ export default defineComponent({ EventBus.getInstance().on(EventNamesDefine.CurrentConnectConnected, () => { $q.loading.hide(); + if (disconnect_flag) { + if ($q.platform.is.android && $q.platform.is.capacitor) { + window.location.reload(); + return; + } + } setTimeout(() => { new Initializer(options).initialize().then(() => { $store.commit("setInitialized");