@@ -57,6 +57,7 @@ import { SettingDrawer, updateTheme, updateColorWeak } from '@ant-design-vue/pro
5757import { i18nRender } from ' @/locales'
5858import { baseMixin } from ' @/store/app-mixin'
5959import {
60+ CONTENT_WIDTH_TYPE ,
6061 SIDEBAR_TYPE , TOGGLE_COLOR ,
6162 TOGGLE_CONTENT_WIDTH , TOGGLE_FIXED_HEADER ,
6263 TOGGLE_FIXED_SIDEBAR ,
@@ -133,7 +134,7 @@ export default {
133134 if (! this .isMobile && val[' screen-xs' ]) {
134135 this .$store .commit (TOGGLE_MOBILE_TYPE , true )
135136 this .collapsed = false
136- this .$store .commit (TOGGLE_CONTENT_WIDTH , false )
137+ this .$store .commit (TOGGLE_CONTENT_WIDTH , CONTENT_WIDTH_TYPE . Fluid )
137138 }
138139 },
139140 /**
@@ -143,17 +144,17 @@ export default {
143144 console .log (' type' , type, value)
144145 switch (type) {
145146 case ' contentWidth' :
146- this .$store .commit (TOGGLE_CONTENT_WIDTH , value === ' Fixed ' )
147+ this .$store .commit (TOGGLE_CONTENT_WIDTH , value)
147148 break
148149 case ' primaryColor' :
149150 this .$store .commit (TOGGLE_COLOR , value)
150151 break
151152 case ' layout' :
152153 this .$store .commit (TOGGLE_LAYOUT , value)
153154 if (value === ' sidemenu' ) {
154- this .$store .commit (TOGGLE_CONTENT_WIDTH , false )
155+ this .$store .commit (TOGGLE_CONTENT_WIDTH , CONTENT_WIDTH_TYPE . Fluid )
155156 } else {
156- this .$store .commit (TOGGLE_CONTENT_WIDTH , true )
157+ this .$store .commit (TOGGLE_CONTENT_WIDTH , CONTENT_WIDTH_TYPE . Fixed )
157158 this .$store .commit (TOGGLE_FIXED_SIDEBAR , false )
158159 }
159160 break
0 commit comments