Compare commits
2 Commits
e895602aa4
...
7c2c6834c2
| Author | SHA1 | Date | |
|---|---|---|---|
| 7c2c6834c2 | |||
| 7dc4c9192b |
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "dex-ui-vue",
|
||||
"version": "0.0.8",
|
||||
"version": "0.0.9",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "dex-ui-vue",
|
||||
"private": true,
|
||||
"version": "0.0.8",
|
||||
"version": "0.0.9",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -26,7 +26,7 @@ import {useAuthStore} from "./stores/auth.ts";
|
||||
import SetsView from "./views/set/SetsView.vue";
|
||||
import JobsView from "./views/JobsView.vue";
|
||||
import {definePreset} from "@primeuix/themes";
|
||||
import {getApiUrl, initConfig} from "@/util/config.ts";
|
||||
import {initConfig} from "@/util/config.ts";
|
||||
import axios from "axios";
|
||||
|
||||
// Initialize configuration from window object
|
||||
@@ -139,12 +139,8 @@ router.beforeEach(async (to) => {
|
||||
app.use(router);
|
||||
app.use(ToastService)
|
||||
|
||||
const devProxy = import.meta.env.DEV && !import.meta.env.VITE_API_HOST && !import.meta.env.VITE_API_PORT
|
||||
? ''
|
||||
: `http://${getApiUrl()}`
|
||||
|
||||
const axiosInstance = axios.create({
|
||||
baseURL: devProxy,
|
||||
baseURL: '',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user