[Vuejs]-How to add condition in method vue.js 2?

3👍

As error says, when you are dealing with the components, data should be defined as function that return an object – so:

data() {
  return {
   store_id: ''
  }
}

1👍

your data should be set as:

  data() {
     return {
       store_id: ''
     }
  }

As its a component? Try this?

Leave a comment