Skip to content

Commit

Permalink
fix[Logout]: click blank area of ​​dropDown able to logout (PanJiaChe…
Browse files Browse the repository at this point in the history
…n#2896)

Fixed clicking blank area of ​​drop-down unable to log out
  • Loading branch information
wangshantao authored and PanJiaChen committed Dec 31, 2019
1 parent 262c0ba commit 4f563a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layout/components/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
<a target="_blank" href="https://panjiachen.github.io/vue-element-admin-site/#/">
<el-dropdown-item>Docs</el-dropdown-item>
</a>
<el-dropdown-item divided>
<span style="display:block;" @click="logout">Log Out</span>
<el-dropdown-item divided @click.native="logout">
<span style="display:block;">Log Out</span>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
Expand Down

0 comments on commit 4f563a7

Please sign in to comment.