<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數據,便於使用