我们需要把前台是否显示的数据改成 是 或者 否 显示
我们可以使用作用域插槽拿到这一列的数据
<el-table-column label="前台是否显示" prop="isFrontDisplay">
<template slot-scope="scope">{{
scope.row.isFrontDisplay ? "是" : "否"
}}</template>
</el-table-column>
但是一定要把 prop 删掉
<el-table-column label="前台是否显示">
<template slot-scope="scope">{{
scope.row.isFrontDisplay ? "是" : "否"
}}</template>
</el-table-column>
这样就可以利用三元表达式来显示是或者否