Skip to content

Commit 6774cce

Browse files
yanglbmeactions-user
authored andcommitted
style: prettify code
1 parent 6e8763f commit 6774cce

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/assets/scripts/util.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -240,11 +240,11 @@ export function downloadMD(doc) {
240240
* @param {HTML生成内容} htmlStr
241241
*/
242242
export function exportHTML(htmlStr) {
243-
const downLink = document.createElement('a')
243+
const downLink = document.createElement("a");
244244

245-
downLink.download = 'content.html';
245+
downLink.download = "content.html";
246246
downLink.style.display = "none";
247-
let blob = new Blob([`<html><body>${htmlStr}</body></html>`])
247+
let blob = new Blob([`<html><body>${htmlStr}</body></html>`]);
248248

249249
downLink.href = URL.createObjectURL(blob);
250250
document.body.appendChild(downLink);

src/components/CodemirrorEditor/header.vue

+1-5
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,7 @@
2929
content="导出 HTML"
3030
placement="bottom-start"
3131
>
32-
<i
33-
class="el-icon-document"
34-
size="medium"
35-
@click="$emit('export')"
36-
></i>
32+
<i class="el-icon-document" size="medium" @click="$emit('export')"></i>
3733
</el-tooltip>
3834
<!-- 页面重置 -->
3935
<el-tooltip

0 commit comments

Comments
 (0)