fix: player list sorting failure (#1533)

This commit is contained in:
pa
2025-12-13 18:02:36 +09:00
committed by Natsumi
parent f7b20605c7
commit 5c7b3a7cc7
+9 -8
View File
@@ -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 currentInstanceUsersTable = computed(() => {
return { const currentInstanceUsersTableProps = reactive({
data: currentInstanceWorld.value.ref.id
? currentInstanceUsersData.value
: [],
tableProps: {
stripe: true, stripe: true,
size: 'small', size: 'small',
defaultSort: { defaultSort: {
prop: 'timer', prop: 'timer',
order: 'descending' order: 'descending'
} }
}, });
layout: 'table' const currentInstanceUsersTable = computed(() => {
return {
data: currentInstanceWorld.value.ref.id
? currentInstanceUsersData.value
: [],
tableProps: currentInstanceUsersTableProps
}; };
}); });