fetch data from localhost/allCaches
This commit is contained in:
parent
77d6a849a6
commit
9001b6d733
5
.gitignore
vendored
5
.gitignore
vendored
@ -24,7 +24,10 @@ labswp_2019_sose_geocaching.iml
|
||||
# public folder
|
||||
src/main/resources/public/
|
||||
|
||||
.idea/
|
||||
# .idea/
|
||||
# nicht notwendig. alle problematischen files sind draußen.
|
||||
# wenns trotzdem noch probleme macht muss man die entsprechenden
|
||||
# files noch mit "git rm --cached <file> untracken.
|
||||
|
||||
|
||||
# Gradle
|
||||
|
||||
@ -45,7 +45,7 @@ export default {
|
||||
denseOn: true,
|
||||
filter: '',
|
||||
selected: [],
|
||||
todos: [],
|
||||
caches: [],
|
||||
columns: [
|
||||
{
|
||||
name: 'desc',
|
||||
@ -61,14 +61,14 @@ export default {
|
||||
{ name: 'title', label: 'Titel', field: 'title' },
|
||||
{ name: 'completed', label: 'Komplett', field: 'completed' },
|
||||
],
|
||||
data: [
|
||||
{
|
||||
"userId": 1,
|
||||
"id": 1,
|
||||
"title": "delectus aut autem",
|
||||
"completed": false
|
||||
}
|
||||
]
|
||||
// data: [
|
||||
// {
|
||||
// "userId": 1,
|
||||
// "id": 1,
|
||||
// "title": "delectus aut autem",
|
||||
// "completed": false
|
||||
// }
|
||||
// ]
|
||||
}
|
||||
},
|
||||
|
||||
@ -78,9 +78,9 @@ export default {
|
||||
|
||||
methods: {
|
||||
fetchTodos () {
|
||||
this.$axios.get('https://jsonplaceholder.typicode.com/todos')
|
||||
this.$axios.get('http://localhost:8080/allCaches')
|
||||
.then((response) => {
|
||||
this.todos = response.data;
|
||||
this.caches = response.data;
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user