修改 hidden 类名

This commit is contained in:
Hooray 2023-03-22 16:53:40 +08:00
parent 591a2fe4b8
commit 8d43865e84
2 changed files with 3 additions and 3 deletions

View File

@ -47,7 +47,7 @@ body {
font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif;
-webkit-tap-highlight-color: transparent;
&.hidden {
&.overflow-hidden {
overflow: hidden;
}
}

View File

@ -24,10 +24,10 @@ const isLink = computed(() => !!routeInfo.meta.link)
watch(() => settingsStore.settings.menu.subMenuCollapse, (val) => {
if (settingsStore.mode === 'mobile') {
if (!val) {
document.body.classList.add('hidden')
document.body.classList.add('overflow-hidden')
}
else {
document.body.classList.remove('hidden')
document.body.classList.remove('overflow-hidden')
}
}
})