Skip to content

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

:bug: Narrow openFileAttr attrs to Record<string, string>

Daniel488361a253fc
diff --git a/app/src/menus/commonMenuItem.ts b/app/src/menus/commonMenuItem.ts
index c1f396e2ae..3c512d1a20 100644
--- a/app/src/menus/commonMenuItem.ts
+++ b/app/src/menus/commonMenuItem.ts
@@ -170,7 +170,7 @@ export const openFileWechatNotify = (protyle: IProtyle) => {
});
};
-export const openFileAttr = (attrs: IObject, focusName = "bookmark", protyle?: IProtyle) => {
+export const openFileAttr = (attrs: Record<string, string>, focusName = "bookmark", protyle?: IProtyle) => {
let customHTML = "";
let notifyHTML = "";
let hasAV = false;