|
@@ -60,7 +60,7 @@ export default {
|
|
|
$route() {
|
|
|
this.addViewTags();
|
|
|
this.moveToCurrentTag();
|
|
|
- if (!activeKey) {
|
|
|
+ if (!activeKey && !this.$store.state.tagsView.isBack) {
|
|
|
const s = new Searchs()
|
|
|
const keys = [this.$route.path]
|
|
|
for (const key in s.searchs) {
|
|
@@ -75,6 +75,7 @@ export default {
|
|
|
s.removeByKey(item)
|
|
|
}
|
|
|
}
|
|
|
+ this.$store.commit('SET_IS_BACK', false)
|
|
|
activeKey = ''
|
|
|
},
|
|
|
visible(value) {
|
|
@@ -146,7 +147,7 @@ export default {
|
|
|
closeSelectedTag(view) {
|
|
|
const searchs = new Searchs();
|
|
|
searchs.remove(this.$route.path);
|
|
|
- this.$store.dispatch("delVisitedViews", view).then((views) => {
|
|
|
+ this.$store.dispatch("delVisitedViews", {...view, dontNeedSave: true}).then((views) => {
|
|
|
if (this.isActive(view)) {
|
|
|
const latestView = views.slice(-1)[0];
|
|
|
if (latestView) {
|