记录一个小问题 “TypeError: Cannot read properties of undefined (reading ‘length’)” 解决方案就是 list.item !==undefined && list.item .length>0