This commit is contained in:
2022-07-19 20:19:24 +00:00
parent 2c7307e495
commit 39ea574258
2 changed files with 20 additions and 1 deletions

View File

@@ -315,6 +315,7 @@ export default {
},
mounted() {
const vm = this;
vm.$vuetify.theme.dark = vm.$store.state.darkMode;
vm.$root.$gzconfirm = vm.$refs.gzconfirm.open;
vm.$root.$gznotify = vm.$refs.gznotify.addNotification;
@@ -342,6 +343,7 @@ export default {
if (!vm.$store.state.authenticated && !isReset) {
//If a direct open path was being used but user is not logged in this will catch it
//otherwise they will just go on to that path directly
// eslint-disable-next-line no-debugger
if (toPath != undefined) {
vm.$router.push({
@@ -353,7 +355,10 @@ export default {
});
} else {
vm.$router.push({
name: "login"
name: "login",
params: {
search: window.location.search
}
});
}
}