{{pawnList.length>0 ? pawnList.name : ''}}

报错:Error in render: "TypeError: Cannot read property 'length' of undefined"

 

解决办法:

{{pawnList!== undefined && pawnList!== null && pawnList.length>0 
? pawnList.name 
: ''}}

 

Logo

前往低代码交流专区

更多推荐