Explorar el Código

默认收起侧边栏

chenrui hace 4 años
padre
commit
8a70935c55
Se han modificado 1 ficheros con 3 adiciones y 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')