这是我的商店文件
const store = new Vuex.Store({
state: {
pokemons: []
},
actions: {
LOAD_POKEMON_LIST: function() {
axios.get('http://pokeapi.co/api/v2/pokemon/').then((response) => {
console.log(response.data)
}, (err) => {
console.log(err)
})
}
}
});
export default store
编译文件时,浏览器会抛出此错误
Uncaught SyntaxError: Invalid or unexpected token