mirror of
https://github.com/gotson/komga.git
synced 2025-12-16 13:33:49 +01:00
perf(webui): reduce duplicate api calls for components with datatables
This commit is contained in:
parent
50af68ccb8
commit
1a8249732d
4 changed files with 1 additions and 11 deletions
|
|
@ -73,9 +73,6 @@ export default Vue.extend({
|
|||
return headers
|
||||
},
|
||||
},
|
||||
async mounted() {
|
||||
this.loadData()
|
||||
},
|
||||
methods: {
|
||||
async loadData() {
|
||||
this.loading = true
|
||||
|
|
|
|||
|
|
@ -68,13 +68,12 @@ export default Vue.extend({
|
|||
},
|
||||
deep: true,
|
||||
},
|
||||
hash(val) {
|
||||
hash() {
|
||||
this.options.page = 1
|
||||
this.options.sortBy = []
|
||||
this.options.sortDesc = []
|
||||
this.elements = []
|
||||
this.totalElements = 0
|
||||
this.loadData(val)
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
|
|
|
|||
|
|
@ -77,9 +77,6 @@ export default Vue.extend({
|
|||
]
|
||||
},
|
||||
},
|
||||
async mounted() {
|
||||
this.loadBooks()
|
||||
},
|
||||
methods: {
|
||||
async loadBooks() {
|
||||
this.loading = true
|
||||
|
|
|
|||
|
|
@ -78,9 +78,6 @@ export default Vue.extend({
|
|||
}))
|
||||
},
|
||||
},
|
||||
async mounted() {
|
||||
this.loadBooks()
|
||||
},
|
||||
methods: {
|
||||
async loadBooks() {
|
||||
this.loading = true
|
||||
|
|
|
|||
Loading…
Reference in a new issue