diff --git a/src/static/app/index.html b/src/static/app/index.html index 5a5aa987..15c6c172 100644 --- a/src/static/app/index.html +++ b/src/static/app/index.html @@ -28,7 +28,6 @@
- diff --git a/src/static/client/index.html b/src/static/client/index.html index b61c2399..b5946ee8 100644 --- a/src/static/client/index.html +++ b/src/static/client/index.html @@ -5,6 +5,7 @@ WGDashboard Client + diff --git a/src/static/client/src/App.vue b/src/static/client/src/App.vue index 9223d159..1cf12aee 100644 --- a/src/static/client/src/App.vue +++ b/src/static/client/src/App.vue @@ -2,11 +2,13 @@ import './assets/main.css' import NotificationList from "@/components/Notification/notificationList.vue"; import {clientStore} from "@/stores/clientStore.js"; +import {axiosGet} from "@/utilities/request.js"; const store = clientStore() -fetch("/client/api/serverInformation") - .then(res => res.json()) - .then(res => store.serverInformation = res.data) +const serverInformation = axiosGet("/api/serverInformation", {}) +if (serverInformation){ + store.serverInformation = serverInformation; +}