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