Reset data on watcher for fielding table
This commit is contained in:
parent
1533fbd0ae
commit
1131465733
@ -97,8 +97,12 @@ export default {
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
teamId(newValue, oldValue) {
|
teamId(newValue, oldValue) {
|
||||||
if (newValue !== oldValue)
|
if (newValue !== oldValue) {
|
||||||
|
this.fieldingStats = []
|
||||||
|
this.sortKey = 'xCheckCount'
|
||||||
|
this.sortOrder = -1
|
||||||
this.fetchData()
|
this.fetchData()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user