forked from noxious/client
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()
|
||||
|
||||
// Fetch characters
|
||||
const characters = ref([])
|
||||
socket.getConnection.on('character:list', (data: any) => {
|
||||
characters.value = data
|
||||
})
|
||||
socket.getConnection.emit('character:list')
|
||||
|
||||
// Select character logics
|
||||
const characters = ref([])
|
||||
const selected_character = ref(null)
|
||||
function select_character() {
|
||||
console.log(selected_character.value)
|
||||
|
Loading…
x
Reference in New Issue
Block a user