添加博客跳转

This commit is contained in:
DLLCNX 2023-08-04 10:37:24 +08:00
parent 0238d8fa8f
commit b900acfde4
1 changed files with 9 additions and 12 deletions

View File

@ -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(`复制失败`)
})
},
}
</script>