luobisheng
2022-11-22 9027351c68d5dabf70120f5c1304abebddc3afca
src/views/layout/components/Header/index.vue
@@ -187,8 +187,8 @@
      } else {
        this.user = await this.getLoginInfo();
      }
      this.show = true;
      this.getMessage();
      this.show = true
    },
    // 获取登录用户信息
    async getLoginInfo(){
@@ -201,7 +201,8 @@
        return res.data;
    },
    getMessage() {
      users.getMessageAuditList({ userId: this.user.user.id })
      const userInfo = JSON.parse(sessionStorage.getItem('user'));
      users.getMessageAuditList({ userId: userInfo.user.id })
          .then(res => {
            this.menuMessageList = res;
            this.menuMessageList.forEach(item => {
@@ -217,10 +218,12 @@
<style lang="scss" scoped>
 ::v-deep .el-form{
  padding: 3vh 5vw;
   .el-form-item__label{
    color: #4b9bb7;
  }
}
.el-header {
  background-color: #071a38;
  color: #333;
@@ -236,6 +239,7 @@
  .header-left {
    display: flex;
    flex: 1;
    .menu-left__item {
      width: 120px;
@@ -262,6 +266,7 @@
    display: flex;
    padding-left: 10vw;
    flex: 1;
    .item {
      width: 100%;
      position: relative;