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