Fixed characters not showing after logging in, added loading screen before showing characters, worked on GM tools
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user