含有html的 json 数据可以用 v-html 渲染
<el-table-column
prop="detail"
label="查看详情">
<template slot-scope="scope">
<div v-html="scope.row.detail"></div>
</template>
</el-table-column>
数据格式
[
{
"name": "数据1",
"detail": "资产[中关2优B]定义不完整"
},
{
"name": "数据2",
"detail": "<a target=\"_blank\" href=\"https://www.baidu.com/\">查看详情</a>"
}
]
页面渲染为