Commit 4a62687b by 肖康

x

parent e8cf8441
Showing with 9 additions and 4 deletions
......@@ -8,9 +8,9 @@
<font class="fl">概况</font>
</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>
<span class="icon iconfont fl" @click.prevent="closetab(item.path)"></span>
<span class="icon iconfont fl" @click.stop="closetab(item.path)"></span>
</a>
</div>
<div class="user-box fr">
......@@ -208,6 +208,9 @@
})
},
tabUrl(item){
this.$router.push({ path: item.path,query:item.query })
},
changePwd() {
this.dialogVisible = true;
},
......
......@@ -37,11 +37,13 @@ router.afterEach((to, from, next) => {
}
if (tabNewJson.indexOf(JSON.stringify({
path: to.path,
title: to.meta.title
title: to.meta.title,
query:to.query
})) == -1) {
tabOldJson.push({
path: to.path,
title: to.meta.title
title: to.meta.title,
query:to.query
})
}
} 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