prints api call result

This commit is contained in:
buttle 2021-10-22 12:28:16 +02:00
parent 459b6b0031
commit 3d8d6264db
1 changed files with 8 additions and 4 deletions

View File

@ -12,9 +12,12 @@ This file is part of ArciveList.
<h1> <h1>
List of sites List of sites
</h1> </h1>
<div v-for="site in sites" :key="site.id"> <template v-for="site in sites">
{{ site.title }} <div v-if="site['o:is_public'] && site['o:title'] != 'Collections'"
:key="site.id">
{{ site['o:title'] }}
</div> </div>
</template>
</div> </div>
</template> </template>
@ -40,9 +43,10 @@ export default {
}, },
mounted() { mounted() {
var self = this; var self = this;
axios.get('https://collections.arc-hive.zone/api/sites', { axios.get('https://dev-archive.hangar.org/api/sites', {
}) })
.then(function (response) { .then(function (response) {
console.log(response.data)
self.sites = response.data self.sites = response.data
//self.$forceUpdate(); //self.$forceUpdate();
}) })