How to use the store value of vuex in the properties of vue template?

this is an example given on vuex"s official website, and it"s easy to understand

.
`,
  computed: {
    count () {
      return store.state.img
    }
  }
}

but it is not possible to write this way. How can you achieve this effect if you want to achieve it?

Mar.14,2021

use: src= "$store.state.img" or: src= "count"


whenever the data in the vue instance is used, use it before the properties in the html: bind

Menu