mirror of
https://github.com/doocs/md.git
synced 2024-11-24 19:10:34 +08:00
fix: same position right click menu visable bug
This commit is contained in:
parent
aade1445bc
commit
3151c4fe99
@ -52,7 +52,7 @@ const mutations = {
|
||||
state.currentColor = data;
|
||||
localStorage.setItem('color', data)
|
||||
},
|
||||
setRightClickMenuVisible(state,data){
|
||||
setRightClickMenuVisible(state,data) {
|
||||
state.rightClickMenuVisible = data;
|
||||
},
|
||||
themeChanged(state) {
|
||||
@ -98,13 +98,13 @@ const mutations = {
|
||||
state.editor.setValue(doc)
|
||||
}
|
||||
|
||||
state.editor.on("cursorActivity",function(){
|
||||
state.editor.on('mousedown', function() {
|
||||
state.rightClickMenuVisible = false
|
||||
});
|
||||
state.editor.on("blur",function(){
|
||||
state.editor.on('blur', function() {
|
||||
state.rightClickMenuVisible = false
|
||||
});
|
||||
state.editor.on("scroll",function(){
|
||||
state.editor.on('scroll', function() {
|
||||
state.rightClickMenuVisible = false
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user