我无法通过vuetify中的下拉按钮调用回调函数
<v-overflow-btn
:items="dropdown_rooms"
label="Nothing Selected"
segmented
target="#dropdown-example">
</v-overflow-btn>
数据部分如下:
data: () => ({
dropdown_rooms: [
{ text: 'room1', callback: () => setRoom('room1')},
{ text: 'room2', callback: () => console.log('room2') },
{ text: 'room3', callback: () => console.log('room3') },
{ text: 'room4', callback: () => console.log('room4') }
],
好的,setRoom方法不起作用。如何将“ this”绑定到回调。
致谢