ミスだった。

このコミットが含まれているのは:
テクニカル諏訪子 2018-01-24 16:58:29 +01:00
コミット 4c99cec1c1
1個のファイルの変更16行の追加16行の削除

ファイルの表示

@ -23,23 +23,23 @@
<script>
import moment from 'moment';
export default {
name: 'new-items',
data: function () {
return {
items: []
}
},
created: function () {
axios.get('/api/rpc/file/getnewfiles').then(data => {
data.data.forEach(cb => {
this.items.push({
'id': cb.id,
'title': cb.title,
'submit_date': moment.unix(cb.submit_date).format("YYYY/MM/DD")
name: 'new-items',
data: function () {
return {
items: []
}
},
created: function () {
axios.get('/api/rpc/file/getnewfiles').then(data => {
data.data.forEach(cb => {
this.items.push({
'id': cb.id,
'title': cb.title,
'submit_date': moment.unix(cb.submit_date).format("YYYY/MM/DD")
});
});
});
})
}
})
}
}
</script>