export default new Vuex.Store({
state: {
company: [],
}
})
new Vue({
el: "#app",
router,
store,
beforeCreate() {
this.$http
.jsonp(getURL(method, { offset: 1, album_id: 0, extended: 1 }))
.then(response => {
return response.json();
})
.then(data => {
return data.response.items.map(items => {
///
return items;
});
})
.then(data => {
this.$store.dispatch("getData", data);
});
{