This commit is contained in:
@@ -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
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user