This commit is contained in:
@@ -124,19 +124,6 @@ export default {
|
||||
break;
|
||||
case "logout":
|
||||
vm.$router.push({ name: "login" });
|
||||
// if (vm.formState && vm.formState.dirty) {
|
||||
// vm.$gzdialog.confirmLeaveUnsaved(vm).then(dialogResult => {
|
||||
// if (dialogResult == true) {
|
||||
// processLogout();
|
||||
// vm.$router.push({ name: "login" });
|
||||
// } else {
|
||||
// return;
|
||||
// }
|
||||
// });
|
||||
// } else {
|
||||
// processLogout();
|
||||
// vm.$router.push({ name: "login" });
|
||||
// }
|
||||
break;
|
||||
case "nav":
|
||||
vm.$router.push({ name: item.data });
|
||||
|
||||
@@ -99,6 +99,8 @@ export default {
|
||||
}
|
||||
},
|
||||
beforeRouteEnter(to, from, next) {
|
||||
//very important as this in conjunction with the menu options means
|
||||
//navigation guards work properly by just sending people here
|
||||
next(() => {
|
||||
auth.logout();
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user