Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/issues/14593

Vanessae731d888e98b
diff --git a/app/src/index.ts b/app/src/index.ts
index 59efd6ec7b..97dfe3637d 100644
--- a/app/src/index.ts
+++ b/app/src/index.ts
@@ -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();
diff --git a/app/src/mobile/util/onMessage.ts b/app/src/mobile/util/onMessage.ts
index 3c324c4499..05fe40fe07 100644
--- a/app/src/mobile/util/onMessage.ts
+++ b/app/src/mobile/util/onMessage.ts
@@ -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;