|
@@ -145,6 +145,8 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
closeSelectedTag(view) {
|
|
|
+ activeKey = '1'
|
|
|
+
|
|
|
const searchs = new Searchs();
|
|
|
searchs.remove(this.$route.path);
|
|
|
this.$store.dispatch("delVisitedViews", {...view, dontNeedSave: true}).then((views) => {
|
|
@@ -175,16 +177,18 @@ export default {
|
|
|
this.top = e.clientY + 15;
|
|
|
},
|
|
|
closeMenu() {
|
|
|
-
|
|
|
this.visible = false;
|
|
|
},
|
|
|
changeTag(tag) {
|
|
|
+ console.log(tag)
|
|
|
activeKey = this.getSearchsByRealPath(tag)
|
|
|
- console.log(activeKey)
|
|
|
+
|
|
|
},
|
|
|
getSearchsByRealPath(tag) {
|
|
|
const searchs = new Searchs()
|
|
|
let keyName = ''
|
|
|
+
|
|
|
+ console.log( searchs.searchs)
|
|
|
for (const key in searchs.searchs) {
|
|
|
if (Object.hasOwnProperty.call(searchs.searchs, key)) {
|
|
|
const item = searchs.searchs[key];
|