From 1027d5978bb7d332894d75bb652a8e792b98b522 Mon Sep 17 00:00:00 2001
From: Alan <1124498879@qq.com>
Date: 星期三, 17 二月 2021 10:07:33 +0800
Subject: [PATCH] 提交清除用户权限

---
 src/layout/components/Navbar.vue |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 2158591..8129eda 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -97,6 +97,11 @@
     clean() {
       db.clear()
       this.$router.push('login')
+      this.deleteCaches()
+    },
+    deleteCaches() {
+      db.remove('USER_ROUTER')
+      db.remove('PERMISSIONS')
     },
     deleteCache() {
       this.$confirm(this.$t('tips.confirmDeleteCache'), this.$t('common.tips'), {

--
Gitblit v1.8.0