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 () { mounted () {
if (this.cachePageSize && this.cacheKey !== null) { if (this.cachePageSize && this.cacheKey !== null) {
const pageSize = window.localStorage.getItem(this.pageSizeKey); let pageSize = window.localStorage.getItem(this.pageSizeKey);
if (this.pageSizeOpts.includes(pageSize)) { if (pageSize && this.pageSizeOpts.includes(parseInt(pageSize))) {
this.currentPageSize = pageSize; this.currentPageSize = parseInt(pageSize);
} }
} }
} }