el-table 解决一渲染数据页面就卡死
报错:
bash
Uncaught (in promise) Maximum recursive updates exceeded in component <ElTableBody>. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.
解决方式:
检查一下el-table列的prop属性是不是绑定了数组 , el-table 的单元格渲染逻辑中,只会处理 字符串 / 数字 / 布尔 /null/ 普通对象 类型的值