import { mapGetters,mapActions } from 'vuex' export default { data (){ let change = 'hot'; return {change} }, computed:{ ...mapGetters({ topic:'getTopics', show:'getShow_2' }) }, methods:{ ...mapActions([ 'sortContent' ]) } }以上代碼報錯如下,請問怎么解決?Syntax Error: Unexpected token (38:2) 36 | }, 37 | computed:{> 38 | ...mapGetters({ | ^ 39 | topic:'getTopics', 40 | show:'getShow_2' 41 | })
...mapGetters報錯
回首憶惘然
2018-11-19 18:13:59