diff --git a/src/utils/api-client.js b/src/utils/api-client.js index 79097cff..8cfd2ffd 100644 --- a/src/utils/api-client.js +++ b/src/utils/api-client.js @@ -3,7 +3,9 @@ import store from '@/store' import { message, notification } from 'ant-design-vue' import { isObject } from './util' -const apiUrl = process.env.VUE_APP_API_URL ? process.env.VUE_APP_API_URL : 'http://localhost:8080' +const storedApiUrl = localStorage.getItem('apiUrl') + +const apiUrl = storedApiUrl ? storedApiUrl : process.env.VUE_APP_API_URL const haloRestApiClient = new HaloRestAPIClient({ baseUrl: apiUrl