浏览器打印出的数据
解决办法
let data = JSON.parse(JSON.stringify(数据))
注意: 如果获取的值为空,将取值的方法改成同步
示例
selectDataArr(key) {
const codeKey = GLOBAL_DICT[key]
setTimeout(() => {
let data = JSON.parse(JSON.stringify(this.$store.state.globalSelectionOptions))
let arr = data[codeKey]
if (codeKey == 9000) {
this.orgSelectionOptions = arr
}
}, 1000)
},