An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: Support path with spaces when using the link to set the header image Fix https://github.com/siyuan-note/siyuan/issues/8113
Liang Ding1b96187ff20e
diff --git a/app/src/protyle/header/Background.ts b/app/src/protyle/header/Background.tsindex 4ed8e26e89..94e4d8daa4 100644--- a/app/src/protyle/header/Background.ts+++ b/app/src/protyle/header/Background.ts@@ -3,13 +3,7 @@ import {getRandom, isMobile} from "../../util/functions";import {hideElements} from "../ui/hideElements";import {uploadFiles} from "../upload";import {fetchPost} from "../../util/fetch";-import {- getRandomEmoji,- openEmojiPanel,- unicode2Emoji,- updateFileTreeEmoji,- updateOutlineEmoji-} from "../../emoji";+import {getRandomEmoji, openEmojiPanel, unicode2Emoji, updateFileTreeEmoji, updateOutlineEmoji} from "../../emoji";import {upDownHint} from "../../util/upDownHint";/// #if !MOBILEimport {openGlobalSearch} from "../../search/util";@@ -322,7 +316,7 @@ export class Background {dialog.destroy();});btnsElement[1].addEventListener("click", () => {- const style = `background-image:url(${dialog.element.querySelector("input").value});`;+ const style = `background-image:url("${dialog.element.querySelector("input").value}");`;this.ial["title-img"] = style;this.render(this.ial, protyle.block.rootID);fetchPost("/api/attr/setBlockAttrs", {