Commit 909d8df0 authored by 胡笑坤's avatar 胡笑坤

样式

parent 7e6abf9e
......@@ -191,9 +191,10 @@ export default {
// 分页逻辑:当前页数据
currentPageList() {
const list = this.data.childrenList || [];
const sortedList = [...list].sort((a, b) => (a.BrandId || 0) - (b.BrandId || 0));
const start = (this.currentPage - 1) * this.pageSize;
const end = start + this.pageSize;
return list.slice(start, end);
return sortedList.slice(start, end);
}
},
methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment