问题描述
我正在使用bootstrap-vue和vue-router进行项目。 我想访问@change上的event.target,但是我只得到$ event,它只有选定的值,没有任何属性。 我以为$ event不是单个值,而是一个具有一些诸如target等属性的对象,但是我错了吗?
gst-launch-1.0 ximagesrc remote=1 num-buffers=1 xid=<windowid> ! videoconvert ! pngenc ! filesink location=screenshot.png
<b-form-select plain :options="options" class="text-Nowrap" @change="test($event)"></b-form-select>
解决方法
您可以尝试在组件上使用本机事件侦听器:
@Transactional
public void update(Restaurant updated) {
restaurantRepository.findById(updated.getId())
.ifPresent(original -> {
original.setRestaurantName(updated.getRestaurantName());
original.setRestaurantAddress(updated.getRestaurantAddress());
});
}