import Vue from 'vue'; import getCARTOData from 'new-dashboard/store/utils/getCARTOData'; const CARTOData = getCARTOData(); const RouterLink = Vue.component( 'router-link', { template: '', props: { staticRoute: String }, computed: { url: function () { const baseUrl = CARTOData.user_data.base_url; return baseUrl + this.staticRoute; } } } ); export default RouterLink;