แก้ชื่อหัวข้อหาย
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 {
|
} else {
|
||||||
logData.value = data.map((v: any) => v._source);
|
logData.value = data.map((v: any) => v._source);
|
||||||
}
|
}
|
||||||
|
if (data.length > 0) {
|
||||||
const lastDataSort = data[data.length - 1].sort;
|
const lastDataSort = data[data.length - 1].sort;
|
||||||
if (lastDataSort) {
|
if (lastDataSort) {
|
||||||
searchAfter.value = lastDataSort[0];
|
searchAfter.value = lastDataSort[0];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
|
|
|
||||||
|
|
@ -162,7 +162,12 @@ onMounted(async () => {
|
||||||
>
|
>
|
||||||
<CardComponents
|
<CardComponents
|
||||||
class="cursor-pointer"
|
class="cursor-pointer"
|
||||||
@click="() => $router.push(item.path)"
|
@click="
|
||||||
|
() => {
|
||||||
|
$router.push(item.path);
|
||||||
|
title = item.label;
|
||||||
|
}
|
||||||
|
"
|
||||||
:index="index"
|
:index="index"
|
||||||
:icon="item.icon"
|
:icon="item.icon"
|
||||||
:label="item.label"
|
:label="item.label"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue