log(this.count) } } 然后就报错了。。...是非法字符。。Module build failed: SyntaxError: D:/01workspace/GitHub/mint-demo/src/components/Vuexdemo.vue: Unexpected token (30:8) 28 | }), 29 | methods: { > 30 | ...mapActions(['getTodos']) | ^ 31 | }, 32 | created(){ 33 | th...
这样使用会报错:computed: { ...mapState({ 'notes': state => state.notes, 'activeNote': state => state.activeNote }) // ...mapState(['notes','activeNote']) },但这样使用就不会报错:computed: mapState({ 'notes': state => state.notes, 'activeNote': state => state.activeNote })...