Vanessa 2022-10-12 15:57:17 +08:00
parent 6be604cd85
commit 962493216f
2 changed files with 4 additions and 4 deletions

View file

@ -36,8 +36,8 @@ export const blockRender = (protyle: IProtyle, element: Element) => {
rotateElement.classList.remove("fn__rotate");
}
let html = "";
response.data.blocks.forEach((blocksItem: { block: IBlock, blockPath: IBreadcrumb[] }) => {
html += `<div class="protyle-wysiwyg__embed" data-id="${blocksItem.block.id}">${genBreadcrumb(blocksItem.blockPath)}${blocksItem.block.content}</div>`;
response.data.blocks.forEach((blocksItem: { block: IBlock, blockPaths: IBreadcrumb[] }) => {
html += `<div class="protyle-wysiwyg__embed" data-id="${blocksItem.block.id}">${genBreadcrumb(blocksItem.blockPaths, true)}${blocksItem.block.content}</div>`;
});
item.setAttribute("data-render", "true");
if (response.data.blocks.length > 0) {