Skip to content

Commit

Permalink
refactor: use CSS to prevent selecting
Browse files Browse the repository at this point in the history
  • Loading branch information
typed-sigterm authored May 1, 2024
1 parent b48df29 commit 64332a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 78,16 @@ onMounted(() => {
location.href = BASE_URL '/'
setVh()
})
//禁止选中文字
document.onselectstart = new Function('return false') as any
})
</script>

<style lang="less">
@import './assets/less/index';
* {
user-select: none;
}
#app {
height: 100%;
width: 100%;
Expand Down

0 comments on commit 64332a9

Please sign in to comment.