This commit is contained in:
2019-04-16 22:43:00 +00:00
parent 7c1d4a1a60
commit a6ae0560e6

View File

@@ -140,7 +140,7 @@ export default {
]
};
},
mounted() {
created() {
//subscribe to context menu changes
var that = this;
this.$gzevent.$on("context-menu-change", function(ctx) {
@@ -155,7 +155,11 @@ export default {
this.$gzevent.$on("context-click", function(key) {
alert("App.vue::context click: " + key);
});
},
beforeDestroy() {
this.$gzevent.$off();
},
mounted() {
//redirect to login if not authenticated
if (!this.$store.state.authenticated) {
this.$router.replace({ name: "login" });