fix:将分页缓存放入created里 以及pagination取值取pageObj的值
This commit is contained in:
@@ -203,6 +203,13 @@
|
||||
deleteBox:{}
|
||||
}
|
||||
},
|
||||
created(){
|
||||
//是否存在分页缓存
|
||||
let pageSize = localStorage.getItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId);
|
||||
if (pageSize != 'undefined' && pageSize != null) {
|
||||
this.pageObj.pageSize = pageSize
|
||||
}
|
||||
},
|
||||
mounted(){
|
||||
this.getEndpointList();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user