修复closeSidebar这个方法定义的参数没有解构问题

This commit is contained in:
RuoYi 2022-12-07 20:16:44 +08:00
parent 13503c3289
commit 882f49144f
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ const useAppStore = defineStore(
Cookies.set('sidebarStatus', 0)
}
},
closeSideBar(withoutAnimation) {
closeSideBar({ withoutAnimation }) {
Cookies.set('sidebarStatus', 0)
this.sidebar.opened = false
this.sidebar.withoutAnimation = withoutAnimation