mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-14 20:02:01 +08:00
chore: 组件卸载时移除emitter
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user