Explorar o código

默认收起侧边栏

chenrui %!s(int64=4) %!d(string=hai) anos
pai
achega
8a70935c55
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/utils/mixin.js

+ 3 - 1
src/utils/mixin.js

@@ -57,7 +57,9 @@ const AppDeviceEnquire = {
       switch (deviceType) {
         case DEVICE_TYPE.DESKTOP:
           $store.commit('TOGGLE_DEVICE', 'desktop')
-          $store.dispatch('setSidebar', true)
+          // $store.dispatch('setSidebar', true)
+          // 默认收起侧边栏
+          $store.dispatch('setSidebar', false)
           break
         case DEVICE_TYPE.TABLET:
           $store.commit('TOGGLE_DEVICE', 'tablet')