diff --git a/src/assets/scripts/util.js b/src/assets/scripts/util.js index 43be7b7..83f6b0c 100644 --- a/src/assets/scripts/util.js +++ b/src/assets/scripts/util.js @@ -240,11 +240,11 @@ export function downloadMD(doc) { * @param {HTML生成内容} htmlStr */ export function exportHTML(htmlStr) { - const downLink = document.createElement('a') + const downLink = document.createElement("a"); - downLink.download = 'content.html'; + downLink.download = "content.html"; downLink.style.display = "none"; - let blob = new Blob([`${htmlStr}`]) + let blob = new Blob([`${htmlStr}`]); downLink.href = URL.createObjectURL(blob); document.body.appendChild(downLink); diff --git a/src/components/CodemirrorEditor/header.vue b/src/components/CodemirrorEditor/header.vue index 0d47e75..290fc93 100644 --- a/src/components/CodemirrorEditor/header.vue +++ b/src/components/CodemirrorEditor/header.vue @@ -29,11 +29,7 @@ content="导出 HTML" placement="bottom-start" > - +