showing OLFUK or OLFDE near API api calls
This commit is contained in:
parent
eb8633c630
commit
af2464cbf6
|
@ -1,12 +1,15 @@
|
|||
import axios from 'axios'
|
||||
import store from '../store/modules/settings.js'
|
||||
|
||||
const ProductEndpointUrl = 'https://metadata.service.development.therig.onlinefuelslabs.io'
|
||||
|
||||
export function fetchList(query) {
|
||||
console.log(store.state.platform)
|
||||
return axios.get(`${ProductEndpointUrl}/fuels`, { params: query })
|
||||
}
|
||||
|
||||
export function fetchProduct(id) {
|
||||
console.log(`${ProductEndpointUrl}/fuels/${id}?platform=${store.state.platform}`)
|
||||
return axios.get(`${ProductEndpointUrl}/fuels/${id}?platform=OLFDE`)
|
||||
}
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ module.exports = {
|
|||
* @type {string} true | false
|
||||
* @description Decide which countrys platform to show to the user
|
||||
*/
|
||||
platform: 'DE',
|
||||
platform: 'OLFDE',
|
||||
|
||||
/**
|
||||
* @type {string | array} 'production' | ['production', 'development']
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
<template>
|
||||
<div class="dashboard-editor-container">
|
||||
<github-corner class="github-corner" />
|
||||
<el-radio v-model="platform" label="DE" @change="someHandler">
|
||||
<el-radio v-model="platform" label="OLFDE" @change="someHandler">
|
||||
DE
|
||||
</el-radio>
|
||||
<el-radio v-model="platform" label="UK" @change="someHandler">
|
||||
<el-radio v-model="platform" label="OLFUK" @change="someHandler">
|
||||
UK
|
||||
</el-radio>
|
||||
<h1>{{ platform }}</h1>
|
||||
|
|
Loading…
Reference in New Issue