mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-06 22:46:06 +02:00
fix: player list sorting failure (#1533)
This commit is contained in:
+10
-9
@@ -83,20 +83,21 @@ export const useInstanceStore = defineStore('Instance', () => {
|
|||||||
const instanceJoinHistory = reactive(new Map());
|
const instanceJoinHistory = reactive(new Map());
|
||||||
|
|
||||||
const currentInstanceUsersData = ref([]);
|
const currentInstanceUsersData = ref([]);
|
||||||
|
|
||||||
|
const currentInstanceUsersTableProps = reactive({
|
||||||
|
stripe: true,
|
||||||
|
size: 'small',
|
||||||
|
defaultSort: {
|
||||||
|
prop: 'timer',
|
||||||
|
order: 'descending'
|
||||||
|
}
|
||||||
|
});
|
||||||
const currentInstanceUsersTable = computed(() => {
|
const currentInstanceUsersTable = computed(() => {
|
||||||
return {
|
return {
|
||||||
data: currentInstanceWorld.value.ref.id
|
data: currentInstanceWorld.value.ref.id
|
||||||
? currentInstanceUsersData.value
|
? currentInstanceUsersData.value
|
||||||
: [],
|
: [],
|
||||||
tableProps: {
|
tableProps: currentInstanceUsersTableProps
|
||||||
stripe: true,
|
|
||||||
size: 'small',
|
|
||||||
defaultSort: {
|
|
||||||
prop: 'timer',
|
|
||||||
order: 'descending'
|
|
||||||
}
|
|
||||||
},
|
|
||||||
layout: 'table'
|
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user