|
@@ -153,7 +153,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)
|
|
|
|
|
@@ -166,14 +166,14 @@ export default {
|
|
|
const alen = item.matched.length < 3
|
|
|
return item.matched[alen ? 1 : 2].name == newMatched.name
|
|
|
})
|
|
|
- console.log(hasEqChild, 'hasEqChild')
|
|
|
+ // console.log(hasEqChild, 'hasEqChild')
|
|
|
const oldMenu = hasEqChild || oldVal
|
|
|
const molen = oldMenu.matched.length < 3
|
|
|
const oldMatched = oldMenu.matched[molen ? 1 : 2]
|
|
|
const hasChildren = newMatched.name == oldMatched.name
|
|
|
|
|
|
if (index < 0) { // 不存在
|
|
|
- console.log(1, hasChildren, '不存在')
|
|
|
+ // console.log(1, hasChildren, '不存在')
|
|
|
// 判断是否是新增,编辑,详情页
|
|
|
const na = newVal.meta.title.indexOf('详情') >= 0
|
|
|
const nb = newVal.meta.title.indexOf('新增') >= 0
|
|
@@ -216,7 +216,7 @@ export default {
|
|
|
if (hasEqChild) {
|
|
|
this.$store.state.app.updateList = hasEqChild.name == oldVal.name
|
|
|
}
|
|
|
- console.log(1, this.$store.state.app.updateList, '已存在')
|
|
|
+ // console.log(1, this.$store.state.app.updateList, '已存在')
|
|
|
this.activeKey = newVal.name
|
|
|
}
|
|
|
},
|