chore: 组件卸载时移除emitter

This commit is contained in:
dap
2024-11-27 08:35:38 +08:00
parent a478721f07
commit 4f96194084
2 changed files with 8 additions and 2 deletions

View File

@@ -1,8 +1,13 @@
<script setup lang="ts">
import { onUnmounted } from 'vue';
import { Page } from '@vben/common-ui';
import DictDataPanel from './data/index.vue';
import { emitter } from './mitt';
import DictTypePanel from './type/index.vue';
onUnmounted(() => emitter.off('rowClick'));
</script>
<template>