|
@@ -152,7 +152,7 @@ export default {
|
|
|
watch: {
|
|
|
'$route': function (newVal, oldVal) {
|
|
|
if (newVal.name == oldVal.name) { return }
|
|
|
- console.log(newVal, oldVal, this.pages)
|
|
|
+ // console.log(newVal, oldVal, this.pages)
|
|
|
// 解决页面地址相同参数不同时打开多个页签问题(例 详情页id或sn不同时)
|
|
|
const index = this.tabsList.indexOf(newVal.name)
|
|
|
|
|
@@ -181,7 +181,7 @@ export default {
|
|
|
const oxt = oldMenu.meta.replaceTab
|
|
|
|
|
|
if (index < 0) { // 不存在
|
|
|
- console.log(1, hasChildren, '不存在')
|
|
|
+ // console.log(1, hasChildren, '不存在')
|
|
|
if ((na || nb || nc || nxt || oa || ob || oc || oxt) && hasChildren) {
|
|
|
// 替换当前页签
|
|
|
this.replaceTab(newVal, oldMenu)
|
|
@@ -211,7 +211,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
} else { // 已存在
|
|
|
- console.log(1, nxt, '已存在')
|
|
|
+ // console.log(1, nxt, '已存在')
|
|
|
this.pages.splice(index, 1, newVal)
|
|
|
this.tabsList.splice(index, 1, newVal.name)
|
|
|
this.$store.state.app.isNewTab = !!nxt
|