Skip to content

Commit

Permalink
fix[Logout]: click blank area of ​​dropDown able to logout (#2896)
Browse files Browse the repository at this point in the history
  • Loading branch information
wangshantao authored and PanJiaChen committed Jan 9, 2020
1 parent c656f2e commit 4339504
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 @@ -44,8 +44,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">{{ $t('navbar.logOut') }}</span>
<el-dropdown-item divided @click.native="logout">
<span style="display:block;">{{ $t('navbar.logOut') }}</span>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
Expand Down

0 comments on commit 4339504

Please sign in to comment.