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

Vanessa623f30b5fc3d
diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts
index 407a889cff..1ea5d30ffb 100644
--- a/app/src/protyle/render/av/action.ts
+++ b/app/src/protyle/render/av/action.ts
@@ -337,6 +337,7 @@ export const updateAVName = (protyle: IProtyle, blockElement: Element) => {
if (newData === nameElement.dataset.title.trim()) {
return;
}
+ const newUpdated = dayjs().format("YYYYMMDDHHmmss")
transaction(protyle, [{
action: "setAttrViewName",
id: avId,
@@ -344,7 +345,7 @@ export const updateAVName = (protyle: IProtyle, blockElement: Element) => {
}, {
action: "doUpdateUpdated",
id,
- data: dayjs().format("YYYYMMDDHHmmss"),
+ data: newUpdated,
}], [{
action: "setAttrViewName",
id: avId,
@@ -354,6 +355,7 @@ export const updateAVName = (protyle: IProtyle, blockElement: Element) => {
id,
data: blockElement.getAttribute("updated")
}]);
+ nameElement.setAttribute("updated", newUpdated);
nameElement.dataset.title = newData;
blockElement.querySelector(".layout-tab-bar .item__text").textContent = newData;
};