ミスだった。

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

ファイルの表示

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