vue multiselect 1.1.4, select value by id
问题 i added multiselect component which looks like this View <multiselect :options="books" :selected="selectedBook" :show-labels="false" placeholder="Choose your book" label="name"> <span slot="noResult">No books were found</span> </multiselect> Script <script> export default { data() { return { books: [], selectedBook: null, } }, created() { this.getBooks(); this.getFav(); }, methods: { getBooks() { this.$http .get('/books/') .then( function(response) { this.books = response.json(); } ); },