Skip to content

Commit 3f3f8d3

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 121fc7e + c2b5a16 commit 3f3f8d3

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

src/store/modules/admin.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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);

src/views/home/index.vue

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)