mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 13:28:38 +08:00
移动端下切换路由时自动收起侧边栏导航
This commit is contained in:
@@ -55,6 +55,14 @@ watch(() => store.state.settings.sidebarCollapse, val => {
|
||||
}
|
||||
})
|
||||
|
||||
watch(() => routeInfo.path, () => {
|
||||
if (store.state.settings.mode === 'mobile') {
|
||||
store.commit('settings/updateThemeSetting', {
|
||||
sidebarCollapse: true
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
onMounted(() => {
|
||||
proxy.$hotkeys('f5', e => {
|
||||
if (store.state.settings.enablePageReload) {
|
||||
|
||||
Reference in New Issue
Block a user