mirror of
https://github.com/m1k1o/neko-rooms.git
synced 2026-11-02 22:51:34 -06:00
fix base path js.
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user