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

Vanessa2b3405fccafd
diff --git a/app/src/protyle/render/av/gallery/item.ts b/app/src/protyle/render/av/gallery/item.ts
index 6c7f252c89..67a8ddb5f4 100644
--- a/app/src/protyle/render/av/gallery/item.ts
+++ b/app/src/protyle/render/av/gallery/item.ts
@@ -1,4 +1,3 @@
-import {showMessage} from "../../../../dialog/message";
import {genCellValue, getTypeByCellElement, renderCell, renderCellAttr} from "../cell";
import {fetchPost} from "../../../../util/fetch";
import {setPage} from "../row";
@@ -59,6 +58,7 @@ ${fieldType === "block" ? ' data-detached="true"' : ""}>${renderCell(genCellValu
viewID: options.blockElement.getAttribute(Constants.CUSTOM_SY_AV_VIEW),
groupID: options.groupID,
previousID: options.previousId,
+ srcIDs: options.srcIDs
}, (response) => {
if (response.data.values) {
let popCellElement: HTMLElement;
diff --git a/app/src/protyle/render/av/row.ts b/app/src/protyle/render/av/row.ts
index f398f5326c..b1475a1a38 100644
--- a/app/src/protyle/render/av/row.ts
+++ b/app/src/protyle/render/av/row.ts
@@ -10,7 +10,6 @@ import {
renderCellAttr
} from "./cell";
import {fetchPost} from "../../../util/fetch";
-import {showMessage} from "../../../dialog/message";
import * as dayjs from "dayjs";
import {Constants} from "../../../constants";
import {insertGalleryItemAnimation} from "./gallery/item";
@@ -116,7 +115,7 @@ export const setPage = (blockElement: Element) => {
export const insertAttrViewBlockAnimation = (options: {
protyle: IProtyle,
blockElement: Element,
- srcIDs: string[],
+ srcIDs: string[], // node id
previousId: string,
groupID?: string
}) => {
@@ -170,6 +169,7 @@ ${colType === "block" ? ' data-detached="true"' : ""}>${renderCell(genCellValue(
viewID: options.blockElement.getAttribute(Constants.CUSTOM_SY_AV_VIEW),
groupID: options.groupID,
previousID: options.previousId,
+ srcIDs: options.srcIDs,
}, (response) => {
if (response.data.values) {
let popCellElement: HTMLElement;