|
|
@@ -5,7 +5,7 @@
|
|
|
<el-image :src="logo" fit="fit" class="icon-32" />
|
|
|
<div class="title" style="margin-left:4px">灯塔智慧党建-控制端</div>
|
|
|
</div>
|
|
|
- <div class="logout">
|
|
|
+ <div class="logout" @click="logout">
|
|
|
退出登录
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -184,7 +184,19 @@
|
|
|
this.total = response.total;
|
|
|
this.loading = false;
|
|
|
});
|
|
|
- }
|
|
|
+ },
|
|
|
+ async logout() {
|
|
|
+ this.$confirm('确定注销并退出系统吗?', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.$store.dispatch('LogOut').then(() => {
|
|
|
+ /*location.href = '/index';*/
|
|
|
+ this.$router.push("/login_pad")
|
|
|
+ })
|
|
|
+ }).catch(() => {});
|
|
|
+ },
|
|
|
}
|
|
|
};
|
|
|
</script>
|