src/views/layout/components/Header/index.vue
@@ -9,10 +9,7 @@ </div> <!-- 右侧菜单 --> <div class="header-right"> <!-- 搜索框 --> <div class="menu-right__item search"> <el-input suffix-icon="el-icon-search" v-model="keyword" placeholder="请输入搜索内容"></el-input> </div> <div class="menu-right__item search"></div> <!-- 登录用户 --> <div class="menu-right__item user" @mousemove="flag.user = true" @mouseleave="flag.user = false"> <el-avatar :size="20" :src="user.user.icon" v-if="user.user.icon"></el-avatar>