Added v2 baseUri getter
This commit is contained in:
parent
fa01015756
commit
fce7d2ee93
1 changed files with 2 additions and 0 deletions
|
|
@ -193,6 +193,8 @@ export default new Vuex.Store({
|
|||
|
||||
getters: {
|
||||
uri: state => `http://${state.host}:${state.port}/api/${state.apiVer}`,
|
||||
uriV2: state => `http://${state.host}:${state.port}/api/v2`,
|
||||
baseUri: state => `http://${state.host}:${state.port}`,
|
||||
ready: state =>
|
||||
state.available &&
|
||||
Object.keys(state.apiConfig).length !== 0 &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue