diff --git a/src/pages/fileDoc/components/markdownDrawer.vue b/src/pages/fileDoc/components/markdownDrawer.vue
index 2a3ae51..e0f4da0 100644
--- a/src/pages/fileDoc/components/markdownDrawer.vue
+++ b/src/pages/fileDoc/components/markdownDrawer.vue
@@ -84,6 +84,13 @@ function initEditor() {
enable: false,
},
after: () => {
+ debugger
+ // document.getElementById('exportButton').addEventListener('click', () => {
+ // const content = vditor.getValue() // 获取编辑器内容
+ // const filename = 'my-exported-document.md' // 定义文件名
+ // vditor.export(filename, content) // 调用原生导出方法
+ // })
+ // console.log('dwad=>', contentEditor.value?.vditor.toolbar?.elements?.export)
contentEditor.value?.setValue(props?.data?.content ?? '')
},
upload: {
diff --git a/src/pages/fileDoc/components/uploadMDDlg.vue b/src/pages/fileDoc/components/uploadMDDlg.vue
new file mode 100644
index 0000000..2462670
--- /dev/null
+++ b/src/pages/fileDoc/components/uploadMDDlg.vue
@@ -0,0 +1,188 @@
+
+
+
+
+
+
+
+ 拖拽文件或者 点击上传
+
+ 上传限制一个文件,新文件会覆盖旧文件
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/fileDoc/index.vue b/src/pages/fileDoc/index.vue
index e9880a1..7f128ab 100644
--- a/src/pages/fileDoc/index.vue
+++ b/src/pages/fileDoc/index.vue
@@ -85,6 +85,11 @@
:isRootMd="isRootMd"
@onSave="onSaveMd"
/>
+