Commit a2d0ee27 authored by Facius's avatar Facius

feat: 名片页面和收据记账页面去掉lastId

parent 80c2c057
......@@ -231,7 +231,7 @@ export default {
current: this.current,
size: this.size,
type: this.currentInfo.type,
lastId: this.current == 1 ? '' : this.lastId
// lastId: this.current == 1 ? '' : this.lastId
})
.then(res => {
if (this.current == 1) {
......@@ -241,6 +241,8 @@ export default {
this.list.push(...res.data);
// 更新底部加载状态
this.loadStatus = res.total > this.list.length ? 'loadmore' : 'nomore';
} else {
this.loadStatus = 'nomore'
}
setTimeout(() => {
this.$nextTick(() => {
......
......@@ -195,7 +195,7 @@ export default {
repair({
start: this.start,
end: this.end,
lastId: this.current == 1 ? '' : this.lastId,
// lastId: this.current == 1 ? '' : this.lastId,
current: this.current,
keyword: this.keyword,
size: this.size,
......@@ -211,6 +211,8 @@ export default {
this.records.push(...data.records);
// 更新底部加载状态
this.loadStatus = data.total > this.records.length ? 'loadmore' : 'nomore';
} else {
this.loadStatus = 'nomore'
}
setTimeout(()=> {
this.$nextTick(() => {
......
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