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