From 64332a93ddf15c41bd2956ffd9f8c951904b8f36 Mon Sep 17 00:00:00 2001 From: Zihan Hu Date: Thu, 2 May 2024 00:01:41 +0800 Subject: [PATCH] refactor: use CSS to prevent selecting --- src/App.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index 99e0e98..45ebd09 100644 --- a/src/App.vue +++ b/src/App.vue @@ -78,14 +78,16 @@ onMounted(() => { location.href = BASE_URL + '/' setVh() }) - //禁止选中文字 - document.onselectstart = new Function('return false') as any })