报错:
源码:
<script> import Vuex from 'vuex'; import {mapActions,mapGetters} from 'vuex'; // console.log(Vuex)export default { name: 'App', data(){ return { msg:'vue+vuex', } }, methods:mapactions([ 'jia' ]), computed:mapgetters([ 'count' ]) } </script> 解决:对象上的键名出错