.map不能映射null,表格数据在刚进入页面没有选择参数时接口传过来的空值 数组可能为空,无法map,加上 || [] 兼容即可 this.tableData = (res.data.data || []).map