Commit 4a62687b by 肖康

x

parent e8cf8441
Showing with 9 additions and 4 deletions
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
<font class="fl">概况</font> <font class="fl">概况</font>
</a> </a>
<a class="item fl" :class="{'act':item.path==$route.path}" :href="'/#'+item.path" v-for="item in tabs"> <a class="item fl" :class="{'act':item.path==$route.path}" @click="tabUrl(item)" v-for="item in tabs">
<font class="fl">{{item.title}}</font> <font class="fl">{{item.title}}</font>
<span class="icon iconfont fl" @click.prevent="closetab(item.path)"></span> <span class="icon iconfont fl" @click.stop="closetab(item.path)"></span>
</a> </a>
</div> </div>
<div class="user-box fr"> <div class="user-box fr">
...@@ -208,6 +208,9 @@ ...@@ -208,6 +208,9 @@
}) })
}, },
tabUrl(item){
this.$router.push({ path: item.path,query:item.query })
},
changePwd() { changePwd() {
this.dialogVisible = true; this.dialogVisible = true;
}, },
......
...@@ -37,11 +37,13 @@ router.afterEach((to, from, next) => { ...@@ -37,11 +37,13 @@ router.afterEach((to, from, next) => {
} }
if (tabNewJson.indexOf(JSON.stringify({ if (tabNewJson.indexOf(JSON.stringify({
path: to.path, path: to.path,
title: to.meta.title title: to.meta.title,
query:to.query
})) == -1) { })) == -1) {
tabOldJson.push({ tabOldJson.push({
path: to.path, path: to.path,
title: to.meta.title title: to.meta.title,
query:to.query
}) })
} }
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment