NEZ-3272 fix:修复endpoint 选中log后 切换 endpoint 数据未更新
This commit is contained in:
@@ -85,6 +85,20 @@ export default {
|
|||||||
return this.$store.getters.getTimePickerRange
|
return this.$store.getters.getTimePickerRange
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
watch: {
|
||||||
|
obj: {
|
||||||
|
immediate: false,
|
||||||
|
deep: true,
|
||||||
|
handler (n) {
|
||||||
|
if (this.from === fromRoute.endpoint) {
|
||||||
|
this.expressions = [`{project="${this.obj.project.name}",module="${this.obj.module.name}",endpoint="${this.obj.name}"}`]
|
||||||
|
} else if (this.from === fromRoute.asset) {
|
||||||
|
this.expressions = [`{asset="${this.obj.name}"}`]
|
||||||
|
}
|
||||||
|
this.queryLogData()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
exportLog ({ limit, descending }) {
|
exportLog ({ limit, descending }) {
|
||||||
const params = {
|
const params = {
|
||||||
|
|||||||
Reference in New Issue
Block a user