╭∩╮( •̀_•́ )╭∩╮
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user