the this.privacy in the component uses the data obtained from state by mapState. The following is written as follows: Unexpected token
where did I write this wrong?
component
data () {
return {
item1: "",
item2: "",
item3: "",
item4: ""
}
},
mounted () {
if (this.privacy) {
let { this.item1, this.item2, this.item3, this.item4 } = { ...this.privacy }
}
}
state
data
privacy: {
item1: 1,
item2: 1,
item3: 1,
item4: 1
}