🔖 Release v3.1.10

This commit is contained in:
Daniel 2024-10-22 09:43:35 +08:00
parent cd8f7c64a4
commit bc772fe4aa
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 4 additions and 4 deletions

View file

@ -70,7 +70,7 @@ export const avRender = (element: Element, protyle: IProtyle, cb?: () => void, v
const snapshot = protyle.options.history?.snapshot;
let newViewID = e.getAttribute(Constants.CUSTOM_SY_AV_VIEW) || "";
if (typeof viewID === "string") {
const viewTabElement = e.querySelector(`.av__views > .layout-tab-bar > .item[data-id="${viewID}"]`) as HTMLElement
const viewTabElement = e.querySelector(`.av__views > .layout-tab-bar > .item[data-id="${viewID}"]`) as HTMLElement;
if (viewTabElement) {
e.dataset.pageSize = viewTabElement.dataset.page;
}