From 580e109ddacff442af19efb8add1da217e934012 Mon Sep 17 00:00:00 2001 From: Spythere Date: Fri, 10 Feb 2023 14:42:11 +0100 Subject: [PATCH] axios: baseURL --- .env | 3 +- src/App.vue | 12 ++---- src/components/TableActions.vue | 27 +++---------- src/mixins/dataMixin.ts | 45 --------------------- src/store.ts | 69 ++++++++++++++++++++++++++++++++- src/views/LoginView.vue | 23 ++--------- src/views/ManagerView.vue | 5 +-- 7 files changed, 86 insertions(+), 98 deletions(-) delete mode 100644 src/mixins/dataMixin.ts diff --git a/.env b/.env index add8602..63e27d9 100644 --- a/.env +++ b/.env @@ -1,2 +1,3 @@ VITE_API_URL="https://spythere.pl" -VITE_API_URL_DEV="https://spythere.pl" \ No newline at end of file +VITE_API_URL_DEV="http://localhost:3000" +VITE_API_DEV=1 \ No newline at end of file diff --git a/src/App.vue b/src/App.vue index 9327ebd..8b95840 100644 --- a/src/App.vue +++ b/src/App.vue @@ -6,23 +6,20 @@