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/10666

Vanessa80decafb73a4
diff --git a/app/src/asset/anno.ts b/app/src/asset/anno.ts
index b22df4f40a..f3b2d1204f 100644
--- a/app/src/asset/anno.ts
+++ b/app/src/asset/anno.ts
@@ -1,7 +1,6 @@
import {fetchPost} from "../util/fetch";
import {setPosition} from "../util/setPosition";
import {hasClosestByAttribute, hasClosestByClassName} from "../protyle/util/hasClosest";
-import * as dayjs from "dayjs";
import {setStorageVal, writeText} from "../protyle/util/compatibility";
import {getAllModels} from "../layout/getAll";
import {focusByRange} from "../protyle/util/selection";
@@ -531,8 +530,7 @@ const getHightlightCoordsByRect = (pdf: any, color: string, rectResizeElement: H
}];
const id = Lute.NewNodeID();
- const content = pdf.appConfig.file.replace(location.origin, "").substr(8).replace(/-\d{14}-\w{7}.pdf$/, "") +
- `-P${startPage.id}-${dayjs().format("YYYYMMDDHHmmss")}`;
+ const content = `${pdf.appConfig.file.replace(location.origin, "").substr(8).replace(/-\d{14}-\w{7}.pdf$/, "")}-P${startPage.id}-${id}`;
const result = [{
index: startPage.id - 1,
coords: [startSelected],