报错类型
可以在HTML里对需要用到二级对象的标签进行v-if判断
<div class="zhanghu_top_zh">
<div class="zhanghu_top_zh_left">姓名:</div>
<div class="zhanghu_top_zh_right" v-if="formData.user">
{{ formData.user.userName }}
</div>
</div>
或者在created里声明二级对象
created() {
this.formData={
user:{}
}
},