mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-19 02:21:38 +08:00
This commit is contained in:
parent
d5b5c082fb
commit
37f859221a
@ -1,7 +1,8 @@
|
|||||||
import {hideMessage, showMessage} from "../dialog/message";
|
|
||||||
/// #if !MOBILE
|
/// #if !MOBILE
|
||||||
import {exportLayout} from "../layout/util";
|
import {exportLayout} from "../layout/util";
|
||||||
/// #endif
|
/// #endif
|
||||||
|
import {isWindow} from "./functions";
|
||||||
|
import {hideMessage, showMessage} from "../dialog/message";
|
||||||
|
|
||||||
export const processMessage = (response: IWebSocketData) => {
|
export const processMessage = (response: IWebSocketData) => {
|
||||||
if ("msg" === response.cmd) {
|
if ("msg" === response.cmd) {
|
||||||
@ -23,7 +24,11 @@ export const processMessage = (response: IWebSocketData) => {
|
|||||||
/// #if MOBILE
|
/// #if MOBILE
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
/// #else
|
/// #else
|
||||||
exportLayout(true);
|
if (isWindow()) {
|
||||||
|
window.location.reload();
|
||||||
|
} else {
|
||||||
|
exportLayout(true);
|
||||||
|
}
|
||||||
/// #endif
|
/// #endif
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user