This commit is contained in:
Vanessa 2022-12-06 09:51:39 +08:00
parent 9f463fec1e
commit ff3ab84811
2 changed files with 3 additions and 3 deletions

View file

@ -284,7 +284,7 @@ const bindProviderEvent = () => {
let timeout = parseInt((providerPanelElement.querySelector("#timeout") as HTMLInputElement).value, 10);
if (7 > timeout) {
if (1 > timeout) {
timeout = 30
timeout = 30;
} else {
timeout = 7;
}
@ -307,7 +307,7 @@ const bindProviderEvent = () => {
window.siyuan.config.sync.s3 = s3;
});
} else if (window.siyuan.config.sync.provider === 3) {
let timeout = parseInt((providerPanelElement.querySelector("#timeout") as HTMLInputElement).value, 10)
let timeout = parseInt((providerPanelElement.querySelector("#timeout") as HTMLInputElement).value, 10);
if (7 > timeout) {
timeout = 7;
}

View file

@ -100,7 +100,7 @@ export const highlightRender = (element: Element, cdn = Constants.PROTYLE_CDN) =
}
}
// 搜索定位
const layoutElement = hasClosestByClassName(block, "search__layout", true)
const layoutElement = hasClosestByClassName(block, "search__layout", true);
if (layoutElement && block.parentElement.getAttribute("data-node-id") === layoutElement.querySelector("#searchList > .b3-list-item--focus")?.getAttribute("data-node-id")) {
const matchElement = block.querySelector('span[data-type="search-mark"]');
if (matchElement) {