This commit is contained in:
yison 2019-03-18 21:19:30 +08:00
parent 8a657318fc
commit 65e3d4f81d

View file

@ -329,9 +329,9 @@
},
mounted () {
if (this.cachePageSize && this.cacheKey !== null) {
const pageSize = window.localStorage.getItem(this.pageSizeKey);
if (this.pageSizeOpts.includes(pageSize)) {
this.currentPageSize = pageSize;
let pageSize = window.localStorage.getItem(this.pageSizeKey);
if (pageSize && this.pageSizeOpts.includes(parseInt(pageSize))) {
this.currentPageSize = parseInt(pageSize);
}
}
}