💄 逗号分隔改为空格

This commit is contained in:
Vanessa 2022-11-29 23:32:41 +08:00
parent fb9b6ea243
commit 27a136f7df
2 changed files with 2 additions and 2 deletions

View file

@ -226,7 +226,7 @@ export const genSearch = (config: ISearchOption, element: Element, closeCB?: ()
if (response.data) {
hPathList.push(...response.data);
}
config.hPath = escapeHtml(hPathList.join(", "));
config.hPath = escapeHtml(hPathList.join(" "));
element.querySelector("#searchPathInput").innerHTML = `${config.hPath}<svg class="search__rmpath"><use xlink:href="#iconClose"></use></svg>`;
inputTimeout = inputEvent(element, config, inputTimeout, edit, false);
});

View file

@ -119,7 +119,7 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void,
});
if (paths.length) {
fetchPost("/api/filetree/getHPathsByPaths", {paths}, (response) => {
dialog.element.querySelector(".b3-dialog__header .ft__smaller").innerHTML = escapeHtml(response.data.join(", "));
dialog.element.querySelector(".b3-dialog__header .ft__smaller").innerHTML = escapeHtml(response.data.join(" "));
});
}
const searchListElement = dialog.element.querySelector("#foldList");