@ -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)
}
</script>
@ -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--')}))
})