Browse Source

导航栏头像增加我的消息跳转

master
x_ying 2 years ago
parent
commit
cabcb8ba1e
  1. 7
      src/layout/components/Navbar.vue

7
src/layout/components/Navbar.vue

@ -35,7 +35,7 @@
<div style="display: flex; justify-content: flex-end; padding: 0 20px; height: 40px; line-height: 40px; color: #339CFF; font-size: 14px; border-bottom: 1px solid #339CFF;"> <div style="display: flex; justify-content: flex-end; padding: 0 20px; height: 40px; line-height: 40px; color: #339CFF; font-size: 14px; border-bottom: 1px solid #339CFF;">
<span style="cursor: pointer;" @click="handleAllRead">全部标记为已读</span> <span style="cursor: pointer;" @click="handleAllRead">全部标记为已读</span>
<!-- 消息中心router --> <!-- 消息中心router -->
<span style="color:#fff; margin-left: 10px; cursor: pointer;" @click="toAllMessage()">去查看</span>
<span style="color:#fff; margin-left: 10px; cursor: pointer;" @click="toAllMessage">去查看</span>
</div> </div>
<div style="max-height: 450px; overflow: hidden; overflow-y: scroll;"> <div style="max-height: 450px; overflow: hidden; overflow-y: scroll;">
<el-dropdown-item v-if="msgList.length===0" class="message-list-item"> <el-dropdown-item v-if="msgList.length===0" class="message-list-item">
@ -71,6 +71,11 @@
个人中心 个人中心
</el-dropdown-item> </el-dropdown-item>
</router-link> </router-link>
<router-link :to="{ path: '/user/center', query: { activeIndex: 1 }}">
<el-dropdown-item divided>
我的消息
</el-dropdown-item>
</router-link>
<span style="display:block;" @click="logoutVisible=true"> <span style="display:block;" @click="logoutVisible=true">
<el-dropdown-item divided> <el-dropdown-item divided>
退出登录 退出登录

Loading…
Cancel
Save