Skip to content

Commit 08b1766

Browse files
committed
fix(footer): 强制渲染footer
1 parent 07a19cd commit 08b1766

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/html-generation/html-generator.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,13 @@ export class HTMLGenerator {
373373

374374
documentContainer.appendChild(middleContent);
375375

376+
const tmpDiv = document.createElement('div');
377+
tmpDiv.innerHTML = WMS_FOOTER;
378+
const footerStyle = document.createElement('style');
379+
footerStyle.innerHTML = WMS_FOOTER_STYLE;
380+
documentContainer.appendChild(footerStyle);
381+
documentContainer.appendChild(tmpDiv.firstChild);
382+
376383
rightSidebar.classList.add("sidebar");
377384
rightSidebar.appendChild(rightContent);
378385
// rightContent.appendChild(rightSidebarScroll);

0 commit comments

Comments
 (0)