fix: 后退前进功能

This commit is contained in:
chenjinsong
2022-10-09 18:47:09 +08:00
parent 313591a5ef
commit 705bc0d58d
11 changed files with 42 additions and 96 deletions

View File

@@ -287,7 +287,6 @@ export default {
} else {
result = breadcrumb ? [breadcrumb.parentName, breadcrumb.name] : []
}
console.info(thirdMenu, fourthMenu, result)
return result
},
showEntityTypeSelector () {
@@ -556,36 +555,32 @@ export default {
if (menus[3]) {
this.handleCurDrilldownTableConfig(this.breadcrumb[2], this.breadcrumb[3])
}
/* this.$router.push({
this.$router.push({
path: route,
query: {
t: +new Date()
}
}) */
this.jumpAndCache(route, {})
})
} else if (opeType === 3) {
/* this.$router.push({
query: { ...this.$route.query, fourthPanel: '' }
}) */
this.jumpAndCache(route, { ...this.$route.query, fourthPanel: '' })
this.$router.push({
query: { ...this.$route.query, fourthPanel: '', t: +new Date() }
})
} else if (opeType != 4) {
this.jumpAndCache(route, { ...this.$route.query, fourthPanel: '', thirdPanel: '' })
/* this.$router.push({
query: { ...this.$route.query, fourthPanel: '', thirdPanel: '' }
}) */
this.$router.push({
query: { ...this.$route.query, fourthPanel: '', thirdPanel: '', t: +new Date() }
})
}
if (route === this.route) {
this.refresh()
return
}
if (route) {
/* this.$router.push({
this.$router.push({
path: route,
query: {
t: +new Date()
}
}) */
this.jumpAndCache(route, {})
})
}
},
dropDownSearch () {