You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<template>
<div class="container">
<p>Global number is: {{ someNumber }}</p>
<ul>
<li v-for="u in users" :key="u.id">{{ u }} </li>
</ul>
</div>
</template>
<script>
import {mapActions, mapState} from "vuex";
export default {
name: "HelloWorld",
computed: {
...mapState({
users: state => state.users,
someNumber: state => state.globalNumber
})
},
props: {
msg: String
},
methods: {
...mapActions(["loadUsers"]),
localLoad() {
this.loadUsers();
}
}
}
</script>
Controllers
[Route("api/user")]
[ApiController]
[Authorize]
public class UserController : ControllerBase
{
public async Task<IActionResult> Get()
{
// TODO: write your awesome code here
return Ok();
}
}