Another shot at fixing characters not loading after login
This commit is contained in:
parent
3a50629bcd
commit
13a4e7f90a
@ -62,13 +62,13 @@ import {type Character as CharacterT} from '@/types'
|
|||||||
const socket = useSocketStore()
|
const socket = useSocketStore()
|
||||||
|
|
||||||
// Fetch characters
|
// Fetch characters
|
||||||
|
const characters = ref([])
|
||||||
socket.getConnection.on('character:list', (data: any) => {
|
socket.getConnection.on('character:list', (data: any) => {
|
||||||
characters.value = data
|
characters.value = data
|
||||||
})
|
})
|
||||||
socket.getConnection.emit('character:list')
|
socket.getConnection.emit('character:list')
|
||||||
|
|
||||||
// Select character logics
|
// Select character logics
|
||||||
const characters = ref([])
|
|
||||||
const selected_character = ref(null)
|
const selected_character = ref(null)
|
||||||
function select_character() {
|
function select_character() {
|
||||||
console.log(selected_character.value)
|
console.log(selected_character.value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user