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