From 68af8463db0b702ea7c78ca508b5bc9fa7a4d291 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Thu, 11 May 2023 11:24:38 +0800 Subject: [PATCH] :art: dropCurrentLayout --- app/src/util/processMessage.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/util/processMessage.ts b/app/src/util/processMessage.ts index 6faa9ff5a..e3bbae07b 100644 --- a/app/src/util/processMessage.ts +++ b/app/src/util/processMessage.ts @@ -23,7 +23,11 @@ export const processMessage = (response: IWebSocketData) => { /// #if MOBILE window.location.reload(); /// #else - exportLayout(true); + if (response.data.dropCurrentLayout) { + window.location.reload(); + } else { + exportLayout(true); + } /// #endif return false; }