Browse Source

问题修改

SunZehao 1 year ago
parent
commit
5b4e4a974c
1 changed files with 6 additions and 5 deletions
  1. 6 5
      src/views/homePage.vue

+ 6 - 5
src/views/homePage.vue

@@ -48,7 +48,8 @@
         removeToken
     } from '../api/auth'
     import {
-        apiPostremoveByToken,apiGetUserPostList,
+        apiPostremoveByToken,
+        apiGetUserPostList,
         apiGetMenuData
     } from '../api/api'
     export default {
@@ -363,9 +364,9 @@
                     current: 1,
                     size: 10
                 }
-                apiGetUserPostList(params).then(datas =>{
-                    if (datas.data && datas.data.records.length>0) {
-                        datas.data.records.forEach(it =>{
+                apiGetUserPostList(params).then(datas => {
+                    if (datas.data && datas.data.records.length > 0) {
+                        datas.data.records.forEach(it => {
                             if (it.posName.indexOf('组织人事部') !== -1 || it.deptName.indexOf('组织人事部') !== -1) {
                                 window.sessionStorage.setItem('ispersonDept', true)
                             }
@@ -547,7 +548,7 @@
             display: flex;
 
             .menuList {
-                width: 13vw;
+                width: 14vw;
                 height: 100vh;
                 background-color: #184FB4;