Commit c967b7ed authored by SESE JULIA's avatar SESE JULIA
Browse files

WIP sytanx errors

parent 4e8434a7
......@@ -31,9 +31,9 @@ export default {
initialItem: Object
},
methods: {
url: function() {
return "/sets/" + this.item.set + "/items/" + this.item.title
}
url: function () {
return '/sets/' + this.item.set + '/items/' + this.item.title
}
},
mounted () {
this.thumbnail = this.APIURL + '/sets/' + this.item.set +
......
......@@ -16,23 +16,24 @@ import MasterHeader from '@/components/header'
export default {
name: 'item',
components: { MasterHeader},
components: { MasterHeader },
data () {
return {
item: null,
url: "/sets/" + this.name + "/items/" + this.title,
item_data: this.APIURL + this.url + "/data/download"
header: null,
item: {},
url: '/sets/' + this.name + '/items/' + this.title,
item_data: this.APIURL + this.url + '/data/download'
}
},
props: {
},
props: {
name: String,
title: String
},
mounted() {
},
mounted () {
this.axios.get(this.APIURL + this.url).then(response => {
this.item = response.data
this.item = response.data
})
}
}
}
</script>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment