╭∩╮( •̀_•́ )╭∩╮

This commit is contained in:
2024-07-01 00:39:07 +02:00
parent f0c5c81e86
commit 21a99f11d4
4 changed files with 50 additions and 25 deletions

View File

@ -31,6 +31,7 @@ import { onMounted, ref } from 'vue'
import { login, register } from '@/services/authentication'
import { useNotificationStore } from '@/stores/notifications'
import { useSocketStore } from '@/stores/socket'
import {useAssetStore} from '@/stores/assets'
const bgm = ref('bgm')
if (bgm.value.paused) {
@ -40,11 +41,17 @@ if (bgm.value.paused) {
const socket = useSocketStore()
const notifications = useNotificationStore()
const assetStore = useAssetStore()
const username = ref('')
const password = ref('')
// automatic login because of development
onMounted(async () => {
/**
* Fetch assets from the server
*/
assetStore.fetchAssets();
const response = await login('ethereal', 'kanker123')
if (response.success === undefined) {