刪除時請求刪除的接口
<el-table-column label="操作" width="131">
<template slot-scope="scope">
<el-button @click="deleteRow(scope.$index,scope.row)" type="text" size="small">刪除</el-button>
</template>
</el-table-column>
deleteRow(index, rows) {
this.axios.deleteType({
id:rows.id
}).then(res=>{
if(res.data==1){
this.$message({
type:'success',
message:'刪除成功'
})
this.getapp();
}else{
this.$message({
type:'info',
message:'刪除失敗'
})
}
}).catch(res=>{
})
},