Skip to content

Commit

Permalink
Merge pull request #75 from Zihan-Hu/master
Browse files Browse the repository at this point in the history
refactor: use CSS to prevent selecting
  • Loading branch information
zyronon authored May 2, 2024
2 parents 2545739 + 64332a9 commit af2809e
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 af2809e

Please sign in to comment.