fix:将分页缓存放入created里 以及pagination取值取pageObj的值
This commit is contained in:
@@ -767,6 +767,11 @@
|
||||
},
|
||||
created(){
|
||||
this.currentProject=this.$store.state.currentProject;
|
||||
//是否存在分页缓存
|
||||
let pageSize=localStorage.getItem('nz-pageSize-'+localStorage.getItem('nz-username')+'-'+this.tableId);
|
||||
if(pageSize){
|
||||
this.endpointPageObj.pageSize=pageSize
|
||||
}
|
||||
this.getModuleList();
|
||||
this.getUserData();
|
||||
this.getProjectList();
|
||||
@@ -776,11 +781,6 @@
|
||||
this.tools.customTableTitle=localStorage.getItem("nz-tableTitle-"+localStorage.getItem("nz-username")+"-"+this.$route.path)
|
||||
?JSON.parse(localStorage.getItem("nz-tableTitle-"+localStorage.getItem("nz-username")+"-"+this.$route.path))
|
||||
:this.tableTitle;
|
||||
//是否存在分页缓存
|
||||
let pageSize=localStorage.getItem('nz-pageSize-'+localStorage.getItem('nz-username')+'-'+this.tableId);
|
||||
if(pageSize){
|
||||
this.endpointPageObj.pageSize=pageSize
|
||||
}
|
||||
setTimeout(()=>{
|
||||
this.ready=true;
|
||||
},300);
|
||||
|
||||
Reference in New Issue
Block a user