These patches fetch Opportunity objects from the REST API so that hardcoded data is no longer needed in OpportunityDetailsPage.vue.
This required sending an HTTP GET request with axios. I added the JWT access token to the request headers although the API server currently does not require it. In the future we can expect the API server to customize responses based on the logged in user or to prevent access entirely, so let's be sure to include the token.
I'm a Vue.js and Quasar newbie, so please let me know if there is a nicer way of doing this!
These patches fetch Opportunity objects from the REST API so that hardcoded data is no longer needed in OpportunityDetailsPage.vue.
This required sending an HTTP GET request with axios. I added the JWT access token to the request headers although the API server currently does not require it. In the future we can expect the API server to customize responses based on the logged in user or to prevent access entirely, so let's be sure to include the token.
I'm a Vue.js and Quasar newbie, so please let me know if there is a nicer way of doing this!