Vue - slot-scope=“scope” 的意义
<template slot-scope="scope">
<el-button type="primary" size="small" @click="$router.push(`/categories/edit/${scope.row._id}`)">编辑</el-button> <!-- $router.push() 跳转页面 -->
<el-button type="primary" size="small" @click="remove(scope.row._id)">删除</el-button>
</template>
slot-scope="scope " 来 取得 作用域插槽 :data绑定的数据,
scope 可以随便替换其他名称, 只是定义对象 来代表取得的data数据 便于使用;