This is because when defining
We only define a one-level structure
for example
info:{}
In fact, the backend returns
info:{
goods:{
goodsName:'cheng'
}
}
Call goodsName at this time
{
{ info.goods.goodsName }}
It will report an error info.goods == undefine
So before we define, we should add
info:{
goods:{}
}
After receiving it in this way, it will not report an error in the browser