diff --git a/src/assets/scripts/util.js b/src/assets/scripts/util.js
index c70174e..5520ecc 100644
--- a/src/assets/scripts/util.js
+++ b/src/assets/scripts/util.js
@@ -213,4 +213,17 @@ export function fixCodeWhiteSpace(value = 'pre') {
pre.style.whiteSpace = value;
})
}
+}
+
+export function downLoadMD(doc) {
+ let downLink = document.createElement('a');
+
+ downLink.download = 'content.md';
+ downLink.style.display = 'none';
+ let blob = new Blob([doc]);
+
+ downLink.href = URL.createObjectURL(blob);
+ document.body.appendChild(downLink);
+ downLink.click();
+ document.body.removeChild(downLink);
}
\ No newline at end of file
diff --git a/src/components/CodemirrorEditor/aboutDialog.vue b/src/components/CodemirrorEditor/aboutDialog.vue
index dc4d8d3..67a90fe 100644
--- a/src/components/CodemirrorEditor/aboutDialog.vue
+++ b/src/components/CodemirrorEditor/aboutDialog.vue
@@ -1,5 +1,5 @@
-
+
一款高度简洁的微信 Markdown 编辑器
@@ -17,7 +17,7 @@
+
+
diff --git a/src/view/CodemirrorEditor.vue b/src/view/CodemirrorEditor.vue
index 5c735e8..1f17463 100644
--- a/src/view/CodemirrorEditor.vue
+++ b/src/view/CodemirrorEditor.vue
@@ -3,10 +3,12 @@
-
-
+
+
+