Fixed characters not showing after logging in, added loading screen before showing characters, worked on GM tools

This commit is contained in:
2024-06-10 02:39:00 +02:00
parent 2f7153fbfe
commit 3e003962dc
10 changed files with 85 additions and 26 deletions

View File

@ -18,13 +18,12 @@ import Game from '@/components/Game.vue'
const screen: Ref<string> = ref('login')
const socket = useSocketStore()
socket.$subscribe(
(mutation, state) => {
socket.$subscribe((mutation, state) => {
if (!state.connection) {
screen.value = 'login'
}
if (state.connection) {
if (state.token && state.connection) {
screen.value = 'characters'
if (state.character) {