TypeError: Cannot read properties of undefined (reading ‘licenseNum‘) at Proxy

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

Guess you like

Origin blog.csdn.net/weixin_43465508/article/details/132511481
Recommended