fix emitter typing issues
This commit is contained in:
parent
ecd018a9e1
commit
1e01c4c767
3 changed files with 17 additions and 15 deletions
|
|
@ -3,15 +3,10 @@
|
|||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent, inject } from "vue";
|
||||
import { defineComponent } from "vue";
|
||||
import UIindex from "@/components/UI/index.vue";
|
||||
|
||||
export default defineComponent({
|
||||
name: "HomeIndex",
|
||||
components: { UIindex },
|
||||
setup() {
|
||||
const emitter: any = inject("mitt");
|
||||
emitter.on("newSelfMessage", (payload: any) => console.log("foo", payload));
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Reference in a new issue