Commit 3b826c2e by Sendya

fix: sidebar opened state. #17 #18

parent 1fdaca01
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</a-drawer> </a-drawer>
</template> </template>
<a-layout :class="[layoutMode, `content-width-${contentWidth}`]" :style="{ paddingLeft: fixSiderbar && device === 'desktop' ? `${sidebarOpened ? 256 : 80}px` : '0' }"> <a-layout :class="[layoutMode, `content-width-${contentWidth}`]" :style="{ paddingLeft: fixSiderbar && isDesktop() ? `${sidebarOpened ? 256 : 80}px` : '0' }">
<!-- layout header --> <!-- layout header -->
<global-header <global-header
:mode="layoutMode" :mode="layoutMode"
......
...@@ -15,7 +15,7 @@ const mixin = { ...@@ -15,7 +15,7 @@ const mixin = {
fixSiderbar: state => state.app.fixSiderbar, fixSiderbar: state => state.app.fixSiderbar,
contentWidth: state => state.app.contentWidth, contentWidth: state => state.app.contentWidth,
autoHideHeader: state => state.app.autoHideHeader, autoHideHeader: state => state.app.autoHideHeader,
sidebarOpened: state => state.app.sidebarOpened sidebarOpened: state => state.app.sidebar.opened
}) })
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment