data () {
return {
bookmarks: {
loading: false,
data: []
}
},
methods: {
setBookmarks () {
this.bookmarks.loading = true;
chrome.bookmarks.getTree((bookmarkTree) => {
this.bookmarks.data = bookmarkTree;
this.bookmarks.loading = false;
}
},
created () {
this.setBookmarks();
}
}