diff --git a/src/api/account.js b/src/api/account.js index bad035e4..e18ab6e8 100644 --- a/src/api/account.js +++ b/src/api/account.js @@ -1,4 +1,5 @@ import axios from 'axios' +import store from '../store/modules/settings.js' const apiUrl = 'https://users.service.development.therig.onlinefuelslabs.io' @@ -15,7 +16,7 @@ export function createAccount(data) { 'name': data.name, 'type': data.type, 'email': data.email, - 'platform': data.platform || 'OLFDE', + 'platform': store.state.platform, 'phone': data.phone, 'status': parseInt(data.status), 'orderConfirmationEmail': data.orderConfirmationEmail, diff --git a/src/views/accounts/list.vue b/src/views/accounts/list.vue index 599afa09..aab29ac6 100644 --- a/src/views/accounts/list.vue +++ b/src/views/accounts/list.vue @@ -79,7 +79,7 @@ export default { created() { // Set the type for the query this.listQuery.type = this.$route.meta.type - this.listQuery.platform = 'OLFDE' + this.listQuery.platform = this.$store.state.settings.platform this.getList() },