fix context menu

This commit is contained in:
syuilo
2021-01-11 18:49:39 +09:00
parent fee953b0df
commit 1286dee1ab
3 changed files with 3 additions and 1 deletions

View File

@ -58,6 +58,7 @@ export default defineComponent({
onContextmenu(e) {
if (['INPUT', 'TEXTAREA'].includes(e.target.tagName) || e.target.attributes['contenteditable']) return;
if (window.getSelection().toString() !== '') return;
const path = this.$route.path;
os.contextMenu([{
type: 'label',