-
@@ -182,9 +182,10 @@ const state = reactive({
firstname: "",
middlename: "",
lastname: "",
- scans: []
+ scans: [],
+ group: "",
+ activetab: "profile",
})
-let activetab = ref("profile");
const toast = useToast();
const token = location.hash.substr(1).split('&')[0].split('=')[1];
axios.get(`${config.baseurl}api/runners/me/${token}`)
@@ -194,6 +195,7 @@ axios.get(`${config.baseurl}api/runners/me/${token}`)
state.firstname = data.firstname;
state.middlename = data.middlename;
state.lastname = data.lastname;
+ state.group = data.group;
}).catch((error) => {
toast.error("An error occured while loading your profile data");
})
diff --git a/src/main.js b/src/main.js
index 188d3ff..0611093 100644
--- a/src/main.js
+++ b/src/main.js
@@ -28,7 +28,7 @@ const Privacy = import('./components/Privacy.vue');
const Register = import('./components/Register.vue');
const Profile = () => import('./components/Profile.vue');
//
-let routes = [ { path: '/', component: EnvError } ];
+let routes = [ { path: '/:pathMatch(.*)*', component: EnvError } ];
if (typeof config !== 'undefined') {
if (config.baseurl && config.documentserver_key) {
routes = [