It is because you declared in data() -> books: [] (which at created and mounted lifecycle is an empty array) so when you will assign -> number: books.length ...
確定! 回上一頁