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 /// #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();

View File

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