mirror of
https://github.com/gotson/komga.git
synced 2026-05-08 04:22:28 +02: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
|
return headers
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
async mounted() {
|
|
||||||
this.loadData()
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
async loadData() {
|
async loadData() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|
|
||||||
|
|
@ -68,13 +68,12 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
deep: true,
|
deep: true,
|
||||||
},
|
},
|
||||||
hash(val) {
|
hash() {
|
||||||
this.options.page = 1
|
this.options.page = 1
|
||||||
this.options.sortBy = []
|
this.options.sortBy = []
|
||||||
this.options.sortDesc = []
|
this.options.sortDesc = []
|
||||||
this.elements = []
|
this.elements = []
|
||||||
this.totalElements = 0
|
this.totalElements = 0
|
||||||
this.loadData(val)
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
|
||||||
|
|
@ -77,9 +77,6 @@ export default Vue.extend({
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
async mounted() {
|
|
||||||
this.loadBooks()
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
async loadBooks() {
|
async loadBooks() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|
|
||||||
|
|
@ -78,9 +78,6 @@ export default Vue.extend({
|
||||||
}))
|
}))
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
async mounted() {
|
|
||||||
this.loadBooks()
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
async loadBooks() {
|
async loadBooks() {
|
||||||
this.loading = true
|
this.loading = true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue