直接在<b-table>
中写入方法:
@row-clicked="myRowClickHandler"
methods: {
myRowClickHandler(record, index) {
// 'record' will be the row data from items
console.log(record); // This will be the item data for the row
window.open(record.link,'_blank')
},
}