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 | })