展示问题

This commit is contained in:
chc
2022-12-28 18:23:23 +08:00
parent 84d3dd247d
commit f4bf4dc060
3 changed files with 14 additions and 11 deletions

View File

@@ -484,9 +484,8 @@ export default {
records.length
? (this.loadRecord.status = 1)
: (this.loadRecord.status = 2);
this.$nextTick(() => {
if (data.record_id == 0) {
if (data.record_id == 0 || !data.record_id) {
el.scrollTop = el.scrollHeight
} else {
el.scrollTop = el.scrollHeight - scrollHeight