mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-18 06:13:52 +02:00
Fix empty playerList
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { reactive, watch, ref, computed } from 'vue';
|
||||
import { computed, reactive, ref, watch } from 'vue';
|
||||
import { ElMessage } from 'element-plus';
|
||||
import { defineStore } from 'pinia';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
@@ -83,7 +83,7 @@ export const useInstanceStore = defineStore('Instance', () => {
|
||||
|
||||
const currentInstanceUsersData = ref([]);
|
||||
const currentInstanceUsersTable = computed(() => {
|
||||
return reactive({
|
||||
return {
|
||||
data: currentInstanceWorld.value.ref.id
|
||||
? currentInstanceUsersData.value
|
||||
: [],
|
||||
@@ -96,13 +96,13 @@ export const useInstanceStore = defineStore('Instance', () => {
|
||||
}
|
||||
},
|
||||
layout: 'table'
|
||||
});
|
||||
};
|
||||
});
|
||||
|
||||
watch(
|
||||
() => watchState.isLoggedIn,
|
||||
(isLoggedIn) => {
|
||||
currentInstanceUsersTable.value.data = [];
|
||||
currentInstanceUsersData.value = [];
|
||||
instanceJoinHistory.value = new Map();
|
||||
previousInstancesInfoDialogVisible.value = false;
|
||||
cachedInstances.clear();
|
||||
@@ -1191,7 +1191,7 @@ export const useInstanceStore = defineStore('Instance', () => {
|
||||
}
|
||||
}
|
||||
}
|
||||
currentInstanceUsersTable.value.data = users;
|
||||
currentInstanceUsersData.value = users;
|
||||
}
|
||||
|
||||
// $app.methods.instanceQueueClear = function () {
|
||||
|
||||
@@ -439,7 +439,8 @@
|
||||
const { showWorldDialog } = useWorldStore();
|
||||
const { lastLocation } = storeToRefs(useLocationStore());
|
||||
const { currentInstanceLocation, currentInstanceWorld } = storeToRefs(useInstanceStore());
|
||||
const { currentInstanceUsersTable, getCurrentInstanceUserList } = useInstanceStore();
|
||||
const { getCurrentInstanceUserList } = useInstanceStore();
|
||||
const { currentInstanceUsersTable } = storeToRefs(useInstanceStore());
|
||||
const { menuActiveIndex } = storeToRefs(useUiStore());
|
||||
const { showFullscreenImageDialog } = useGalleryStore();
|
||||
const { currentUser } = storeToRefs(useUserStore());
|
||||
|
||||
Reference in New Issue
Block a user