Skip to content

Commit a04f377

Browse files
committed
修复自定义二次打开$tabs时参数丢失的问题
1 parent c993893 commit a04f377

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Vol.Vue/src/views/Index.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ export default {
241241
this.navigation.push({
242242
name: item.name || item.text || "无标题",
243243
path: item.path,
244+
query:item.query //2021.03.20修复自定义二次打开$tabs时参数丢失的问题
244245
});
245246
//新打开的tab移至最后一个选项
246247
this.selectId = this.navigation.length - 1;
@@ -279,8 +280,10 @@ export default {
279280
selectNav (index) {
280281
/* 2020.07.31增加手动打开tabs*/
281282
this.selectId = index;
283+
//2021.03.20修复自定义二次打开$tabs时参数丢失的问题
282284
this.$router.push({
283285
path: this.navigation[index].path,
286+
query:this.navigation[index].query
284287
});
285288
},
286289
removeNav (_index) {

开发版dev/Vue.NetCore/Vol.Vue/src/views/Index.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,7 @@ export default {
241241
this.navigation.push({
242242
name: item.name || item.text || "无标题",
243243
path: item.path,
244+
query:item.query //2021.03.20修复自定义二次打开$tabs时参数丢失的问题
244245
});
245246
//新打开的tab移至最后一个选项
246247
this.selectId = this.navigation.length - 1;
@@ -279,8 +280,10 @@ export default {
279280
selectNav (index) {
280281
/* 2020.07.31增加手动打开tabs*/
281282
this.selectId = index;
283+
//2021.03.20修复自定义二次打开$tabs时参数丢失的问题
282284
this.$router.push({
283285
path: this.navigation[index].path,
286+
query:this.navigation[index].query
284287
});
285288
},
286289
removeNav (_index) {

0 commit comments

Comments
 (0)