mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-30 04:05:16 +01:00
This commit is contained in:
parent
1fe22e15f4
commit
17b4d8765a
5 changed files with 35 additions and 4 deletions
|
|
@ -266,7 +266,7 @@ export class MobileFiles extends Model {
|
|||
}
|
||||
}
|
||||
|
||||
private init(init = true) {
|
||||
public init(init = true) {
|
||||
let html = "";
|
||||
let closeHtml = "";
|
||||
window.siyuan.notebooks.forEach((item) => {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import {openMobileFileById} from "../editor";
|
||||
import {processSync, progressLoading, progressStatus, transactionError} from "../../dialog/processSystem";
|
||||
import {processSync, progressLoading, progressStatus, reloadSync, transactionError} from "../../dialog/processSystem";
|
||||
import {Constants} from "../../constants";
|
||||
|
||||
const processReadonly = () => {
|
||||
|
|
@ -17,6 +17,9 @@ const processReadonly = () => {
|
|||
export const onMessage = (data: IWebSocketData) => {
|
||||
if (data) {
|
||||
switch (data.cmd) {
|
||||
case "syncMergeResult":
|
||||
reloadSync(data.data);
|
||||
break;
|
||||
case "readonly":
|
||||
window.siyuan.config.editor.readOnly = data.data;
|
||||
processReadonly();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue