fix(webui): page size chooser would not always reflect the actual value

This commit is contained in:
Gauthier Roebroeck 2021-03-26 17:24:33 +08:00
parent 74954a63de
commit 5ee423030f

View File

@ -40,8 +40,11 @@ export default Vue.extend({
},
},
watch: {
value (val) {
this.selection = this.items.findIndex(x => x === val)
value: {
handler(val) {
this.selection = this.items.findIndex(x => x === val)
},
immediate: true,
},
},
methods: {