添加博客跳转
This commit is contained in:
parent
0238d8fa8f
commit
b900acfde4
|
@ -218,6 +218,11 @@ export default {
|
||||||
title: `复制到简书`,
|
title: `复制到简书`,
|
||||||
url: `https://www.jianshu.com`,
|
url: `https://www.jianshu.com`,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key: `博客`,
|
||||||
|
title: `复制到博客`,
|
||||||
|
url: `https://dllcnx.com:18888/console`,
|
||||||
|
},
|
||||||
],
|
],
|
||||||
config,
|
config,
|
||||||
citeStatus: false,
|
citeStatus: false,
|
||||||
|
@ -395,7 +400,7 @@ export default {
|
||||||
// 输出提示
|
// 输出提示
|
||||||
this.$notify({
|
this.$notify({
|
||||||
showClose: true,
|
showClose: true,
|
||||||
message: `已复制渲染后的文章到剪贴板,2秒后打开公众号后台,可直接到公众号后台粘贴`,
|
message: `已复制渲染后的文章到剪贴板,1秒后打开公众号后台,可直接到公众号后台粘贴`,
|
||||||
offset: 80,
|
offset: 80,
|
||||||
duration: 1600,
|
duration: 1600,
|
||||||
type: `success`,
|
type: `success`,
|
||||||
|
@ -404,21 +409,21 @@ export default {
|
||||||
this.$emit(`endCopy`)
|
this.$emit(`endCopy`)
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
window.open(`https://mp.weixin.qq.com`, `_blank`)
|
window.open(`https://mp.weixin.qq.com`, `_blank`)
|
||||||
}, 2000)
|
}, 1000)
|
||||||
}, 350)
|
}, 350)
|
||||||
},
|
},
|
||||||
copyMd(url) {
|
copyMd(url) {
|
||||||
// 输出提示
|
// 输出提示
|
||||||
this.$notify({
|
this.$notify({
|
||||||
showClose: true,
|
showClose: true,
|
||||||
message: `已复制渲染后的文章到剪贴板,2秒后将跳转至对应网站`,
|
message: `已复制渲染后的文章到剪贴板,1秒后将跳转至对应网站`,
|
||||||
offset: 80,
|
offset: 80,
|
||||||
duration: 1600,
|
duration: 1600,
|
||||||
type: `success`,
|
type: `success`,
|
||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
url && window.open(url, `_blank`)
|
url && window.open(url, `_blank`)
|
||||||
}, 2000)
|
}, 1000)
|
||||||
},
|
},
|
||||||
// 自定义CSS样式
|
// 自定义CSS样式
|
||||||
async customStyle() {
|
async customStyle() {
|
||||||
|
@ -512,14 +517,6 @@ export default {
|
||||||
return this.editor.getValue()
|
return this.editor.getValue()
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
clipboard.on(`success`, (e) => {
|
|
||||||
console.log(`复制成功`)
|
|
||||||
})
|
|
||||||
|
|
||||||
clipboard.on(`error`, (e) => {
|
|
||||||
console.log(`复制失败`)
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue