فهرست منبع

:art: dropCurrentLayout

Vanessa 2 سال پیش
والد
کامیت
68af8463db
1فایلهای تغییر یافته به همراه5 افزوده شده و 1 حذف شده
  1. 5 1
      app/src/util/processMessage.ts

+ 5 - 1
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;
     }