mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 13:28:38 +08:00
修改 hidden 类名
This commit is contained in:
@@ -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')
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user