Skip to content

Commit 4f563a7

Browse files
wangshantaoPanJiaChen
authored andcommitted
fix[Logout]: click blank area of ​​dropDown able to logout (PanJiaChen#2896)
Fixed clicking blank area of ​​drop-down unable to log out
1 parent 262c0ba commit 4f563a7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/layout/components/Navbar.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
<a target="_blank" href="https://panjiachen.github.io/vue-element-admin-site/#/">
3737
<el-dropdown-item>Docs</el-dropdown-item>
3838
</a>
39-
<el-dropdown-item divided>
40-
<span style="display:block;" @click="logout">Log Out</span>
39+
<el-dropdown-item divided @click.native="logout">
40+
<span style="display:block;">Log Out</span>
4141
</el-dropdown-item>
4242
</el-dropdown-menu>
4343
</el-dropdown>

0 commit comments

Comments
 (0)