对数据库中拿到的数据,进行分割
this.tableData[1].name = res.paths[0]
.map((item, index) => {
return `第${index + 1}个点坐标为:(${item
.slice(0, 9)
.join(",")})\n`;
})
.join("");
数据格式
需要加入样式即可实现换行
.el-table .cell {
white-space: pre-wrap;
}