fix:将分页缓存放入created里 以及pagination取值取pageObj的值
This commit is contained in:
@@ -412,6 +412,13 @@
|
||||
self.tools.tableHover = false;
|
||||
}
|
||||
},
|
||||
created(){
|
||||
//是否存在分页缓存
|
||||
let pageSize = localStorage.getItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId);
|
||||
if (pageSize != 'undefined' && pageSize != null) {
|
||||
this.pageObj.pageSize = pageSize
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
//初始化数据
|
||||
Promise.all([this.getDcData()]).then(response => {
|
||||
|
||||
Reference in New Issue
Block a user