mirror of
https://gitee.com/fantastic-admin/basic.git
synced 2024-12-05 05:27:39 +08:00
修改 hidden 类名
This commit is contained in:
parent
591a2fe4b8
commit
8d43865e84
@ -47,7 +47,7 @@ body {
|
||||
font-family: Lato, "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
|
||||
&.hidden {
|
||||
&.overflow-hidden {
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
|
@ -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')
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user