From b900acfde4c5b05f706121c241ad86b16fe81396 Mon Sep 17 00:00:00 2001 From: DLLCNX Date: Fri, 4 Aug 2023 10:37:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8D=9A=E5=AE=A2=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CodemirrorEditor/EditorHeader/index.vue | 21 ++++++++----------- 1 file changed, 9 insertions(+), 12 deletions(-) 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(`复制失败`) - }) }, }