Accounts fetch and create works for UK/DE
This commit is contained in:
parent
af2464cbf6
commit
68ffe55abb
|
@ -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,
|
||||
|
|
|
@ -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()
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue