File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
components/CodemirrorEditor Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -240,11 +240,11 @@ export function downloadMD(doc) {
240240 * @param {HTML生成内容 } htmlStr
241241 */
242242export 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 ) ;
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments