diff --git a/src/App.vue b/src/App.vue index 1b0dfd2..7d09e41 100644 --- a/src/App.vue +++ b/src/App.vue @@ -102,7 +102,7 @@ const token = pubsub.subscribe("zp", (msg, data) => { }); //卸载组件 -onUnmounted(() => { +onUnmounted(() => { pubsub.unsubscribe(routeToken); pubsub.unsubscribe(token); }); @@ -130,6 +130,11 @@ const hideWins = (e) => { showSearch.value = false; } }; + +const keyup = (e) => { + console.log(e); + +}