File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
开发版dev/Vue.NetCore/Vol.Vue/src/views Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments