weexteam/hackernews-App-powered-by-Apache-Weex

How to use 'mapActions' and 'mapGetters' with vuex?

Closed this issue · 3 comments

Hi, I am trying to use mapActions and mapGetters in this project with weex but i am getting following error after following steps:
1 ) import { mapActions,mapGetters } from 'vuex'
2 )

    computed: {
          ...mapGetters(['getProjectHeader']),
      },

image.

Am i missing any step Or we can't use this with weex ?

You can use mapActions and mapGetters in Weex.

According to the error log, I think you are using a wrong syntax of spread operator (...).

I guess this is the es6 syntax. I am already using this for another vue project.

The configure of this project maybe a little outdate, you can see much "modern" configure in the project which is generated by weex-toolkit.