Skip to content

Commit

Permalink
style: prettify code
Browse files Browse the repository at this point in the history
  • Loading branch information
yanglbme authored and actions-user committed Oct 14, 2021
1 parent 6e8763f commit 6774cce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/assets/scripts/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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([`<html><body>${htmlStr}</body></html>`])
let blob = new Blob([`<html><body>${htmlStr}</body></html>`]);

downLink.href = URL.createObjectURL(blob);
document.body.appendChild(downLink);
Expand Down
6 changes: 1 addition & 5 deletions src/components/CodemirrorEditor/header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@
content="导出 HTML"
placement="bottom-start"
>
<i
class="el-icon-document"
size="medium"
@click="$emit('export')"
></i>
<i class="el-icon-document" size="medium" @click="$emit('export')"></i>
</el-tooltip>
<!-- 页面重置 -->
<el-tooltip
Expand Down

0 comments on commit 6774cce

Please sign in to comment.