fix classic.vue

This commit is contained in:
fly_mc 2024-10-17 21:41:09 +08:00
parent c68b17e65d
commit 9301e9ba5c

View file

@ -108,7 +108,7 @@ function top() {
function onContextmenu(ev: MouseEvent) {
if (isLink(ev.target)) return;
if (['INPUT', 'TEXTAREA', 'IMG', 'VIDEO', 'CANVAS'].includes(ev.target.tagName) || ev.target.attributes['contenteditable']) return;
if (window.getSelection().toString() !== '') return;
if (window.getSelection()?.toString() !== '') return;
const path = mainRouter.getCurrentPath();
os.contextMenu([{
type: 'label',