Skip to content
Snippets Groups Projects
Verified Commit 965933e6 authored by Kirill Stytsenko's avatar Kirill Stytsenko
Browse files

Make table data pagination work

parent ee99e914
Branches
Tags
3 merge requests!81New stable release,!43Merge dev to master,!41UI March
......@@ -121,6 +121,9 @@ export default {
version (newVersion, oldVersion) {
console.info('selected new version', newVersion)
this.loadData()
},
options () {
this.loadData()
}
},
mounted () {
......@@ -154,7 +157,7 @@ export default {
}
const res = await this.$axios.get(url)
console.debug('version', this.datetime, 'table data', res.data)
this.total = res.headers['fda-count']
this.total = parseInt(res.headers['fda-count'])
this.rows = res.data.result
} catch (err) {
console.error('failed to load data', err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment