File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,18 @@ export default {
121
121
this .menus = this .mainMenu .find ((item ) => item .path === ' /' ).children
122
122
this .collapsed = ! this .sidebarOpened
123
123
},
124
+ mounted () {
125
+ const userAgent = navigator .userAgent
126
+ if (userAgent .indexOf (' Edge' ) > - 1 ) {
127
+ this .$nextTick (() => {
128
+ this .collapsed = ! this .collapsed
129
+ setTimeout (() => {
130
+ this .collapsed = ! this .collapsed
131
+ }, 16 )
132
+ })
133
+ }
134
+
135
+ },
124
136
methods: {
125
137
... mapActions ([' setSidebar' ]),
126
138
toggle () {
@@ -158,6 +170,7 @@ export default {
158
170
}
159
171
160
172
.layout.ant-layout {
173
+ height : auto ;
161
174
overflow-x : hidden ;
162
175
163
176
& .mobile ,& .tablet {
@@ -488,6 +501,7 @@ export default {
488
501
box-shadow : 2px 0 6px rgba (0 , 21 , 41 , .35 );
489
502
position : relative ;
490
503
z-index : 10 ;
504
+ height : auto ;
491
505
492
506
.ant-layout-sider-children :hover {
493
507
overflow-y : auto ;
You can’t perform that action at this time.
0 commit comments