refactor: use CSS to prevent selecting

This commit is contained in:
Zihan Hu
2024-05-02 00:01:41 +08:00
committed by GitHub
parent b48df2945b
commit 64332a93dd

View File

@@ -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%;