diff --git a/client/src/store/index.ts b/client/src/store/index.ts index a15a550..5e232ce 100644 --- a/client/src/store/index.ts +++ b/client/src/store/index.ts @@ -13,7 +13,7 @@ import { state, State } from './state' Vue.use(Vuex) const api = new RoomsApi(new Configuration({ - basePath: location.href.replace(/\/+$/, ''), + basePath: (location.protocol + '//' + location.host + location.pathname).replace(/\/+$/, ''), })) export default new Vuex.Store({