File tree Expand file tree Collapse file tree 2 files changed +9
-8
lines changed
Expand file tree Collapse file tree 2 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,9 @@ const actions = {
6464 return new Promise ( ( resolve , reject ) => {
6565 userInfo ( )
6666 . then ( response => {
67+ if ( response . code === 2 ) {
68+ reject ( "登录失效" ) ;
69+ }
6770 const data = response . data || { } ;
6871 commit ( types . RECEIVE_ADMIN_NAME , data . username ) ;
6972 commit ( types . RECEIVE_ADMIN_AVATAR , data . avatar ) ;
Original file line number Diff line number Diff line change @@ -371,10 +371,6 @@ export default {
371371 background-color : #fff ;
372372}
373373
374- .header .el-dropdown {
375- @include fxied-center ;
376- }
377-
378374.logo {
379375 display : block ;
380376 width : 100% ;
@@ -404,13 +400,10 @@ export default {
404400}
405401
406402.header-right {
407- position : absolute ;
408- top : 0 ;
409- right : 5px ;
410403 display : flex ;
411- width : 80px ;
412404 height : 100% ;
413405 margin-left : 10px ;
406+ float : right ;
414407 .el-dropdown {
415408 display : flex ;
416409 cursor : pointer ;
@@ -468,6 +461,11 @@ export default {
468461/* }*/
469462
470463@media screen and (max-width : 768px ) {
464+ .main {
465+ overflow-y : scroll !important ;
466+ -webkit-overflow-scrolling : touch ;
467+ }
468+
471469 .slide-hide.slide-in-left {
472470 -webkit-transform : translate3d (64px , 0 , 0 ) !important ;
473471 transform : translate3d (64px , 0 , 0 ) !important ;
You can’t perform that action at this time.
0 commit comments