mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 14:34:06 +01:00
This commit is contained in:
parent
d586a26cba
commit
03b00a6b8d
4 changed files with 13 additions and 7 deletions
|
|
@ -31,6 +31,9 @@ export const onMessage = (app: App, data: IWebSocketData) => {
|
|||
case "setConf":
|
||||
window.siyuan.config = data.data;
|
||||
break;
|
||||
case "reloaddoc":
|
||||
reloadSync(this, {upsertRootIDs: [data.data], removeRootIDs: []}, false, false, true);
|
||||
break;
|
||||
case "readonly":
|
||||
window.siyuan.config.editor.readOnly = data.data;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue