后端传来的数据
现在需要的数据
完整代码
<template>
<div>
</div>
</template>
<script>
export default {
data() {
return {
webSetting:{
startTime: "2022-03-20T12:46:43.253+0000",
endTime: "2022-03-20T14:24:30.929+0000",
invalid: false,
id: "B220320124643",
type: "ROLL",
},
arr:[{}]
}
},
created(){
for(let i in this.webSetting){
this.$set(this.arr[0],i,this.webSetting[i])
}
console.log(this.arr)
}
}
</script>
<style lang="scss" scoped>
</style>