有警告:
Module Warning (from ./node_modules/_vue-loader@15.9.8@vue-loader/lib/loaders/templateLoader.js):
(Emitted value instead of an instance of Error) the "scope" attribute for scoped slots have been deprecated and replaced by "slot-scope" since 2.5. The new "slot-scope" attribute can also be used on plain elements in addition to <template> to denote scoped slots.
<el-table-column label="上架情况" prop="sj" width='100px' :show-overflow-tooltip="true">
<template scope="scope">
<div v-if="scope.row.sj == '已上架'" style="color:#00D45C;">{{scope.row.sj}}</div>
<div v-if="scope.row.sj == '未上架'" style="color:#858A9C;">{{scope.row.sj}}</div>
</template>
</el-table-column>
解决方案:template 标签上有个 scope 属性 给改为 slot-scope