mirror of
https://github.com/doocs/md.git
synced 2024-11-28 13:36:32 +08:00
feat: update editor.js
更新复制时的提示信息及展示方式
This commit is contained in:
parent
d06fbad9c2
commit
b70514a3ad
@ -131,22 +131,28 @@ let app = new Vue({
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
if (document.execCommand('copy')) {
|
if (document.execCommand('copy')) {
|
||||||
this.$message({
|
this.$notify({
|
||||||
showClose: true,
|
showClose: true,
|
||||||
message: '已复制文章到剪贴板,可直接到公众号后台粘贴',
|
message: '已复制文章到剪贴板,可直接到公众号后台粘贴',
|
||||||
|
offset: 80,
|
||||||
|
duration: 1600,
|
||||||
type: 'success'
|
type: 'success'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.$message({
|
this.$notify({
|
||||||
showClose: true,
|
showClose: true,
|
||||||
message: '未能复制文章到剪贴板,请全选后右键复制',
|
message: '未能复制文章到剪贴板,请全选后右键复制',
|
||||||
|
offset: 80,
|
||||||
|
duration: 1600,
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.$message({
|
this.$notify({
|
||||||
showClose: true,
|
showClose: true,
|
||||||
message: '未能复制文章到剪贴板,请全选后右键复制',
|
message: '未能复制文章到剪贴板,请全选后右键复制',
|
||||||
|
offset: 80,
|
||||||
|
duration: 1600,
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user