添加博客跳转
This commit is contained in:
parent
0238d8fa8f
commit
b900acfde4
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue