报错:Uncaught (in promise) TypeError: Cannot read properties of null (reading ‘length’) 造成的问题:因为不能识别请求的数据为null时,对结构布局也会产生影响,造成结构布局混乱 解决:因为是不能识别null,所以在页面做判断时,可以把null这个情况给考虑一下,我的解决方法就是使用符号:&& 多判断一层