wl
2022-11-22 83b81a748405be91ab215c7dd3408e1dac4b2292
src/views/layout/components/Header/index.vue
@@ -182,12 +182,12 @@
    // 设置用户基本信息
    async setLoginInfo() {
      const info = JSON.parse(sessionStorage.getItem('user'));
      this.getMessage();
      if (info) {
        this.user = info;
      } else {
        this.user = await this.getLoginInfo();
      }
      this.getMessage();
      this.show = true
    },
    // 获取登录用户信息
@@ -218,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;
@@ -237,6 +239,7 @@
  .header-left {
    display: flex;
    flex: 1;
    .menu-left__item {
      width: 120px;
@@ -263,6 +266,7 @@
    display: flex;
    padding-left: 10vw;
    flex: 1;
    .item {
      width: 100%;
      position: relative;