瀏覽代碼

修改缓存

QuKatie 3 年之前
父節點
當前提交
e29e7d386e
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      src/page/index/tags.vue

+ 3 - 1
src/page/index/tags.vue

@@ -221,7 +221,7 @@ export default {
       this.$store.commit("DEL_ALL_DETAIL");
     },
     clearCacheTags() {
-      this.$confirm("是否需要清除缓存?", {
+      this.$confirm("清除缓存需要重新登陆,是否继续?", {
         confirmButtonText: "确定",
         cancelButtonText: "取消",
         type: "warning"
@@ -229,6 +229,8 @@ export default {
         clearCache().then(() => {
           this.contextmenuFlag = false;
           this.$message.success("清除完毕");
+          localStorage.clear();
+          this.$router.go(0);
         });
       });
     }