|
@@ -71,12 +71,13 @@ export default {
|
|
|
for (const key in s.searchs) {
|
|
|
if (Object.hasOwnProperty.call(s.searchs, key)) {
|
|
|
const item = s.searchs[key];
|
|
|
- if (item.bind === this.$route.path) {
|
|
|
+ if (item.bind === this.$route.path&&item.bind!=='/main/main') {
|
|
|
keys.push(key);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
for (const item of keys) {
|
|
|
+
|
|
|
s.removeByKey(item);
|
|
|
}
|
|
|
}
|
|
@@ -111,6 +112,7 @@ export default {
|
|
|
return route.path === this.$route.path;
|
|
|
},
|
|
|
syncTagViewAndSaveForm() {
|
|
|
+
|
|
|
const keys = this.$store.state.tagsView.visitedViews.map((item) => {
|
|
|
// (item)
|
|
|
return item.path;
|
|
@@ -122,6 +124,7 @@ export default {
|
|
|
let route = this.$route;
|
|
|
for (const item of sks) {
|
|
|
if (!(keys.includes(item) || keys.includes(allSearch[item].bind))) {
|
|
|
+
|
|
|
searchs.removeByKey(item);
|
|
|
}
|
|
|
|
|
@@ -172,7 +175,6 @@ export default {
|
|
|
if (this.isActive(view)) {
|
|
|
|
|
|
const latestView = views[views.length -2];
|
|
|
- console.log(views)
|
|
|
if (latestView) {
|
|
|
this.$router.push(latestView.fullPath);
|
|
|
} else {
|
|
@@ -184,6 +186,7 @@ export default {
|
|
|
console.log(e)
|
|
|
}
|
|
|
} else {
|
|
|
+
|
|
|
const searchs = new Searchs();
|
|
|
searchs.remove(this.$route.path);
|
|
|
this.$store
|