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
|
||||
import {exportLayout} from "../layout/util";
|
||||
/// #endif
|
||||
import {isWindow} from "./functions";
|
||||
import {hideMessage, showMessage} from "../dialog/message";
|
||||
|
||||
export const processMessage = (response: IWebSocketData) => {
|
||||
if ("msg" === response.cmd) {
|
||||
@ -23,7 +24,11 @@ export const processMessage = (response: IWebSocketData) => {
|
||||
/// #if MOBILE
|
||||
window.location.reload();
|
||||
/// #else
|
||||
exportLayout(true);
|
||||
if (isWindow()) {
|
||||
window.location.reload();
|
||||
} else {
|
||||
exportLayout(true);
|
||||
}
|
||||
/// #endif
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user