|
|
@@ -46,10 +46,10 @@
|
|
|
</span>
|
|
|
</div> -->
|
|
|
<div class="other-operation">
|
|
|
- <!-- <div class="other-operation-item">
|
|
|
- <li class="fa fa-eraser"></li>
|
|
|
+ <div class="other-operation-item" @click="clearCache">
|
|
|
+ <li class="fa fa-eraser" ></li>
|
|
|
清除缓存
|
|
|
- </div> -->
|
|
|
+ </div>
|
|
|
<div class="other-operation-item" @click="recruiting">
|
|
|
<li class="fa fa-user"></li>
|
|
|
闪电增员
|
|
|
@@ -135,7 +135,20 @@ export default {
|
|
|
recruiting() {
|
|
|
this.$refs.recruitingDialog.setBackupVisible(true)
|
|
|
},
|
|
|
-
|
|
|
+ // 清除缓存
|
|
|
+ clearCache(){
|
|
|
+ localStorage.clear()
|
|
|
+ sessionStorage.removeItem("user")
|
|
|
+ this.deleteCookie("token")
|
|
|
+ this.deleteCookie("user")
|
|
|
+ this.deleteCookie("name")
|
|
|
+ this.mainTabs = [];
|
|
|
+ this.$router.push("/login")
|
|
|
+ Cookies.removeAllCookie();
|
|
|
+ this.$api.login.logout().then((res) => {
|
|
|
+ }).catch(function (res) {
|
|
|
+ })
|
|
|
+ },
|
|
|
// 退出登录
|
|
|
logout: function () {
|
|
|
this.$confirm("确认退出吗?", "提示", {
|