แก้ชื่อหัวข้อหาย
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(() => {
|
||||
|
|
|
|||
|
|
@ -162,7 +162,12 @@ onMounted(async () => {
|
|||
>
|
||||
<CardComponents
|
||||
class="cursor-pointer"
|
||||
@click="() => $router.push(item.path)"
|
||||
@click="
|
||||
() => {
|
||||
$router.push(item.path);
|
||||
title = item.label;
|
||||
}
|
||||
"
|
||||
:index="index"
|
||||
:icon="item.icon"
|
||||
:label="item.label"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue