diff --git a/src/components/CodemirrorEditor/EditorHeader/index.vue b/src/components/CodemirrorEditor/EditorHeader/index.vue index dcafde8..5bca3fc 100644 --- a/src/components/CodemirrorEditor/EditorHeader/index.vue +++ b/src/components/CodemirrorEditor/EditorHeader/index.vue @@ -218,6 +218,11 @@ export default { title: `复制到简书`, url: `https://www.jianshu.com`, }, + { + key: `博客`, + title: `复制到博客`, + url: `https://dllcnx.com:18888/console`, + }, ], config, citeStatus: false, @@ -395,7 +400,7 @@ export default { // 输出提示 this.$notify({ showClose: true, - message: `已复制渲染后的文章到剪贴板,2秒后打开公众号后台,可直接到公众号后台粘贴`, + message: `已复制渲染后的文章到剪贴板,1秒后打开公众号后台,可直接到公众号后台粘贴`, offset: 80, duration: 1600, type: `success`, @@ -404,21 +409,21 @@ export default { this.$emit(`endCopy`) setTimeout(() => { window.open(`https://mp.weixin.qq.com`, `_blank`) - }, 2000) + }, 1000) }, 350) }, copyMd(url) { // 输出提示 this.$notify({ showClose: true, - message: `已复制渲染后的文章到剪贴板,2秒后将跳转至对应网站`, + message: `已复制渲染后的文章到剪贴板,1秒后将跳转至对应网站`, offset: 80, duration: 1600, type: `success`, }) setTimeout(() => { url && window.open(url, `_blank`) - }, 2000) + }, 1000) }, // 自定义CSS样式 async customStyle() { @@ -512,14 +517,6 @@ export default { return this.editor.getValue() }, }) - - clipboard.on(`success`, (e) => { - console.log(`复制成功`) - }) - - clipboard.on(`error`, (e) => { - console.log(`复制失败`) - }) }, }