diff --git a/src/App.vue b/src/App.vue index 3193fed..c8f3a79 100644 --- a/src/App.vue +++ b/src/App.vue @@ -18,13 +18,4 @@ provide("router", useRouter()) provide("route", useRoute()) - var event=inject("event") - window._e=event - function eventDemo(){ - setTimeout(()=>{ - event.emit("home",323) - eventDemo() - },5000) - } - eventDemo() \ No newline at end of file diff --git a/src/view/home.vue b/src/view/home.vue index 5752877..3269d3b 100644 --- a/src/view/home.vue +++ b/src/view/home.vue @@ -29,6 +29,5 @@ import {dInput} from 'black-knight/lib/components' onMounted(()=>{ onUnmounted(event.on("home",data=>{console.log(data,'=======event----------home--1111--')})) - onUnmounted(event.on("home",data=>{console.log(data,'=======event----------home--2222--')})) }) \ No newline at end of file