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