แก้ชื่อหัวข้อหาย

This commit is contained in:
oat_dev 2024-07-24 09:21:35 +07:00
parent aa5a1cded6
commit 3628fe11f4
2 changed files with 11 additions and 5 deletions

View file

@ -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(() => {

View file

@ -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"