Merge pull request #75 from Zihan-Hu/master
refactor: use CSS to prevent selecting
This commit is contained in:
commit
af2809ec73
@ -78,14 +78,16 @@ onMounted(() => {
|
|||||||
location.href = BASE_URL + '/'
|
location.href = BASE_URL + '/'
|
||||||
setVh()
|
setVh()
|
||||||
})
|
})
|
||||||
//禁止选中文字
|
|
||||||
document.onselectstart = new Function('return false') as any
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
@import './assets/less/index';
|
@import './assets/less/index';
|
||||||
|
|
||||||
|
* {
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
#app {
|
#app {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user