发送全局事件:
$nuxt.$emit('my-custom-event')
接受事件:
created() {
this.$nuxt.$on('my-custom-event', () => {
//Do Something
})
}
发送全局事件:
$nuxt.$emit('my-custom-event')
接受事件:
created() {
this.$nuxt.$on('my-custom-event', () => {
//Do Something
})
}