auth-web/src/store/useStorePagination.ts

16 lines
400 B
TypeScript
Raw Normal View History

/**
* *
* @param response
*/
export function storePagination(response: any) {
2025-04-24 13:43:37 +08:00
// 返回成功为其赋值
if (response.code === 200) {
this.datalist = response.data.list;
this.pagination.currentPage = response.data.pageNo;
this.pagination.pageSize = response.data.pageSize;
this.pagination.total = response.data.total;
return true;
}
return false;
}