แก้ชื่อหัวข้อหาย
This commit is contained in:
parent
aa5a1cded6
commit
3628fe11f4
2 changed files with 11 additions and 5 deletions
|
|
@ -58,10 +58,11 @@ export const useDataStore = defineStore("logStore", () => {
|
|||
} else {
|
||||
logData.value = data.map((v: any) => v._source);
|
||||
}
|
||||
|
||||
const lastDataSort = data[data.length - 1].sort;
|
||||
if (lastDataSort) {
|
||||
searchAfter.value = lastDataSort[0];
|
||||
if (data.length > 0) {
|
||||
const lastDataSort = data[data.length - 1].sort;
|
||||
if (lastDataSort) {
|
||||
searchAfter.value = lastDataSort[0];
|
||||
}
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue