|
@@ -66,6 +66,7 @@ export default {
|
|
this.addViewTags();
|
|
this.addViewTags();
|
|
this.moveToCurrentTag();
|
|
this.moveToCurrentTag();
|
|
// 就是为了处理,tab 切换,saveKey 问题
|
|
// 就是为了处理,tab 切换,saveKey 问题
|
|
|
|
+ console.log(!activeKey , !this.$store.state.tagsView.isBack)
|
|
if (!activeKey && !this.$store.state.tagsView.isBack) {
|
|
if (!activeKey && !this.$store.state.tagsView.isBack) {
|
|
const s = new Searchs();
|
|
const s = new Searchs();
|
|
const keys = [this.$route.path];
|
|
const keys = [this.$route.path];
|
|
@@ -77,9 +78,10 @@ export default {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- // for (const item of keys) {
|
|
|
|
- // s.removeByKey(item);
|
|
|
|
- // }
|
|
|
|
|
|
+ // 当点击侧边栏的时候需要刷新页面 所以得把当前路由缓存得数据清理掉
|
|
|
|
+ for (const item of keys) {
|
|
|
|
+ s.removeByKey(item);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
this.$store.commit("SET_IS_BACK", false);
|
|
this.$store.commit("SET_IS_BACK", false);
|
|
activeKey = "";
|
|
activeKey = "";
|