This commit is contained in:
2019-04-19 20:17:05 +00:00
parent 94a1955d86
commit b9440822b4
4 changed files with 27 additions and 12 deletions

View File

@@ -107,11 +107,11 @@
/* Xeslint-disable */
import aboutInfo from "../api/aboutinfo";
function clickHandler(item) {
if (!item.disabled && !item.key.startsWith("app:")) {
alert("about.vue::context click: " + item.key);
}
}
// function clickHandler(item) {
// if (this.$gzmenu.isRelevantClick(item)) {
// alert("about.vue::context click: " + item.key);
// }
// }
export default {
beforeCreate() {
@@ -148,7 +148,7 @@ export default {
}
]
});
this.$gzevent.$on("menu-click", clickHandler);
// this.$gzevent.$on("menu-click", clickHandler);
this.clientInfo.version = aboutInfo.version;
this.$gzapi
@@ -161,7 +161,7 @@ export default {
});
},
beforeDestroy() {
this.$gzevent.$off("menu-click", clickHandler);
// this.$gzevent.$off("menu-click", clickHandler);
},
data() {
return {

View File

@@ -131,7 +131,7 @@
<script>
/* xeslint-disable */
function clickHandler(item) {
if (!item.disabled && !item.key.startsWith("app:")) {
if (this.$gzmenu.isRelevantClick(item)) {
alert("inventory-widget-edit.vue::context click: " + item.key);
}
}
@@ -201,6 +201,7 @@ export default {
}
]
});
this.$gzevent.$on("menu-click", clickHandler);
this.getDataFromApi();
},