re-setup subproject kontor-vue
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<header class="jumbotron">
|
||||
<h3>{{ content }}</h3>
|
||||
</header>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import UserService from "../services/user.service";
|
||||
|
||||
export default {
|
||||
name: "User",
|
||||
data() {
|
||||
return {
|
||||
content: "",
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
UserService.getUserBoard().then(
|
||||
(response) => {
|
||||
this.content = response.data;
|
||||
},
|
||||
(error) => {
|
||||
this.content =
|
||||
(error.response &&
|
||||
error.response.data &&
|
||||
error.response.data.message) ||
|
||||
error.message ||
|
||||
error.toString();
|
||||
}
|
||||
);
|
||||
},
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user