mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-27 18:53:47 +02:00
fix gamelog rowid
This commit is contained in:
@@ -131,13 +131,25 @@
|
|||||||
gameLogTable.value.pageSizeLinked ? appearanceSettingsStore.tablePageSize : gameLogTable.value.pageSize
|
gameLogTable.value.pageSizeLinked ? appearanceSettingsStore.tablePageSize : gameLogTable.value.pageSize
|
||||||
);
|
);
|
||||||
|
|
||||||
|
function getGameLogRowId(row) {
|
||||||
|
if (row?.rowId != null) return `row:${row.rowId}`;
|
||||||
|
|
||||||
|
const type = row?.type ?? '';
|
||||||
|
const createdAt = row?.created_at ?? row?.createdAt ?? row?.dt ?? '';
|
||||||
|
const userId = row?.userId ?? '';
|
||||||
|
const displayName = row?.displayName ?? '';
|
||||||
|
const location = row?.location ?? '';
|
||||||
|
|
||||||
|
return `${type}:${createdAt}:${userId}:${displayName}:${location}`;
|
||||||
|
}
|
||||||
|
|
||||||
const { table, pagination } = useVrcxVueTable({
|
const { table, pagination } = useVrcxVueTable({
|
||||||
persistKey: 'gameLog',
|
persistKey: 'gameLog',
|
||||||
get data() {
|
get data() {
|
||||||
return gameLogTableData.value;
|
return gameLogTableData.value;
|
||||||
},
|
},
|
||||||
columns,
|
columns,
|
||||||
getRowId: (row, index) => `${row.type}:${row.rowId ?? index}`,
|
getRowId: getGameLogRowId,
|
||||||
initialSorting: [],
|
initialSorting: [],
|
||||||
initialPagination: {
|
initialPagination: {
|
||||||
pageIndex: 0,
|
pageIndex: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user