Skip to content

Commit

Permalink
feature: 用户登出时需要有二次确认窗口 TencentBlueKing#39
Browse files Browse the repository at this point in the history
  • Loading branch information
hailinxiao committed Jul 5, 2021
1 parent c3cd077 commit e1f785e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,13 @@
* @desc 退出登录
*/
handleLogout () {
EventBus.$emit('logout');
LogoutService.logout();
this.$bkInfo({
title: '确认退出登录?',
confirmFn: () => {
EventBus.$emit('logout');
LogoutService.logout();
},
});
},
},
};
Expand Down

0 comments on commit e1f785e

Please sign in to comment.