0👍
You are missing a comma(“,”) after the data property. Try again after adding it.
export default {
data () {
return {
list: []
}
}, <===== Here.
methods: {
addToList () {
this.list.push( // some object )
},
clickDiv() {
console.log('click div!!!')
}
}
}
- [Vuejs]-Can't use Vuex to store the method function
- [Vuejs]-Laravel7 CORS : blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin'
Source:stackexchange.com