NEZ-2162 feat: 添加 保留打开底部弹窗的状态

This commit is contained in:
zhangyu
2022-09-05 15:35:32 +08:00
parent 3f3ce50513
commit c2ae213235
13 changed files with 110 additions and 18 deletions

View File

@@ -95,9 +95,11 @@ import LogBottomTab from '@/components/common/bottomBox/tabs/logBottomTab'
import scrapeEndpoint from '@/components/common/bottomBox/tabs/scrapeEndpoint'
import IpDetails from '@/components/common/bottomBox/tabs/IpDetails'
import recordRuleEvalLog from '@/components/common/bottomBox/tabs/recordRuleEvalLog'
import routerPathParams from '@/components/common/mixin/routerPathParams'
export default {
name: 'bottomBox',
mixins: [routerPathParams],
components: {
scrapeEndpoint,
LogBottomTab,
@@ -314,6 +316,9 @@ export default {
},
changeTab (tab) {
this.$emit('update:targetTab', tab)
this.$nextTick(() => {
this.updatePath(this.$route.query, this.$route.path, 'bottomBox')
})
},
afterResize () {
if (this.from === this.fromRoute.endpoint && this.targetTab === 'endpointQuery') {