fix: 下拉过滤器首项会影响其他仪表板
This commit is contained in:
parent
bb66dd1fb2
commit
fb956acacf
@ -98,7 +98,8 @@ export default {
|
||||
separator: ',',
|
||||
timeMachine: null,
|
||||
changeIndex: 0,
|
||||
flag: uuid.v1()
|
||||
flag: uuid.v1(),
|
||||
hasDestroy: false
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@ -274,6 +275,7 @@ export default {
|
||||
beforeDestroy() {
|
||||
bus.$off('onScroll', this.onScroll)
|
||||
bus.$off('reset-default-value', this.resetDefaultValue)
|
||||
this.hasDestroy = true
|
||||
},
|
||||
methods: {
|
||||
selectOnScroll() {
|
||||
@ -384,6 +386,9 @@ export default {
|
||||
}
|
||||
},
|
||||
fillFirstSelected() {
|
||||
if (this.hasDestroy) {
|
||||
return
|
||||
}
|
||||
if (this.selectFirst && this.data?.length) {
|
||||
this.fillFirstValue()
|
||||
this.$emit('filter-loaded', {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user