[mod] make production webapp work as well
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
const dwatcherAPI = api('http://localhost:10501')
|
||||
const dwatcherAPI = api()
|
||||
this.watchers = await dwatcherAPI.getStatus()
|
||||
|
||||
},
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
import * as axios from "axios";
|
||||
|
||||
export function api(baseURL) {
|
||||
export function api() {
|
||||
|
||||
const instance = axios.default.create({
|
||||
baseURL
|
||||
baseURL: __API__
|
||||
})
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user