Vanessa 2025-04-14 14:10:19 +08:00
parent 8e60de66ee
commit e731d888e9
2 changed files with 8 additions and 0 deletions

View File

@ -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();

View File

@ -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;