소스 검색

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

RuoYi 2 년 전
부모
커밋
882f49144f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/store/modules/app.js

+ 1 - 1
src/store/modules/app.js

@@ -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