フェリックス
フェリックス
NNuxt
Created by フェリックス on 4/5/2025 in #❓・help
Click Event is not working
Hello dear people... i wanted to make a simple click event for a button. Strangely it doesnt work and I tried out some things but I dont get it to work. Im pretty new in vue and nuxt to I would be happy to get some help :) Code:
<script setup lang="ts">
import {PlayFab} from "playfab-sdk";
import {PlayFabClient} from "playfab-sdk";

const config = useRuntimeConfig();


const registerRequest = {
TitleId: PlayFab.settings.titleId,
Password: 'djaksdjaskldj22',
RequireBothUsernameAndEmail: true,
Username: 'ZeroOne'
}

function registerUser() {
console.log('registerUser');
PlayFab.settings.titleId = config.playFab_titleId;
PlayFabClient.RegisterPlayFabUser(registerRequest, LoginCall)
}

function LoginCall() {
console.log("Registration successful");
}
</script>

<template>
<button v-on:click="LoginCall">Register</button>
</template>

<style scoped>

</style>
<script setup lang="ts">
import {PlayFab} from "playfab-sdk";
import {PlayFabClient} from "playfab-sdk";

const config = useRuntimeConfig();


const registerRequest = {
TitleId: PlayFab.settings.titleId,
Password: 'djaksdjaskldj22',
RequireBothUsernameAndEmail: true,
Username: 'ZeroOne'
}

function registerUser() {
console.log('registerUser');
PlayFab.settings.titleId = config.playFab_titleId;
PlayFabClient.RegisterPlayFabUser(registerRequest, LoginCall)
}

function LoginCall() {
console.log("Registration successful");
}
</script>

<template>
<button v-on:click="LoginCall">Register</button>
</template>

<style scoped>

</style>
I hope to get some help :)
73 replies