项目场景:
vue+element-plus
问题描述:
element-plus的table进行数据展示时出现Uncaught (in promise) TypeError: l.indexOf is not a function ![在这里插入图片描述](https://img-blog.csdnimg.cn/3a653b336982438eb381fcbd27fae6ef.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L21taWFvQ2hvbmc=,size_16,color_FFFFFF,t_70#pic_center)原因分析:
在给el-table赋值的时候不是数组解决方案:
查看el-tabel赋值的地方打印出来看看是不是数组