mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-03 19:41:31 +08:00
This commit is contained in:
parent
8e60de66ee
commit
e731d888e9
@ -35,6 +35,8 @@ import {processIOSPurchaseResponse} from "./util/iOSPurchase";
|
|||||||
/// #if BROWSER
|
/// #if BROWSER
|
||||||
import {setLocalShorthandCount} from "./util/noRelyPCFunction";
|
import {setLocalShorthandCount} from "./util/noRelyPCFunction";
|
||||||
/// #endif
|
/// #endif
|
||||||
|
import {getDockByType} from "./layout/tabUtil";
|
||||||
|
import {Tag} from "./layout/dock/Tag";
|
||||||
|
|
||||||
export class App {
|
export class App {
|
||||||
public plugins: import("./plugin").Plugin[] = [];
|
public plugins: import("./plugin").Plugin[] = [];
|
||||||
@ -68,6 +70,9 @@ export class App {
|
|||||||
case "setDefRefCount":
|
case "setDefRefCount":
|
||||||
setDefRefCount(data.data);
|
setDefRefCount(data.data);
|
||||||
break;
|
break;
|
||||||
|
case "reloadTag":
|
||||||
|
(getDockByType("tag")?.data.tag as Tag).update();
|
||||||
|
break;
|
||||||
/// #if BROWSER
|
/// #if BROWSER
|
||||||
case "setLocalShorthandCount":
|
case "setLocalShorthandCount":
|
||||||
setLocalShorthandCount();
|
setLocalShorthandCount();
|
||||||
|
@ -17,6 +17,9 @@ export const onMessage = (app: App, data: IWebSocketData) => {
|
|||||||
case "setDefRefCount":
|
case "setDefRefCount":
|
||||||
setDefRefCount(data.data);
|
setDefRefCount(data.data);
|
||||||
break;
|
break;
|
||||||
|
case "reloadTag":
|
||||||
|
window.siyuan.mobile.docks.tag?.update();
|
||||||
|
break;
|
||||||
case "setLocalShorthandCount":
|
case "setLocalShorthandCount":
|
||||||
setLocalShorthandCount();
|
setLocalShorthandCount();
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user