Add emitter.off cleanup in onBeforeUnmount for 10 components
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -235,7 +235,7 @@
|
||||
* configuration with calendar inputs.
|
||||
*/
|
||||
|
||||
import { reactive } from "vue";
|
||||
import { reactive, onBeforeUnmount } from "vue";
|
||||
import { storeToRefs } from "pinia";
|
||||
import { useConformanceStore } from "@/stores/conformance";
|
||||
import emitter from "@/utils/emitter";
|
||||
@@ -672,4 +672,13 @@ emitter.on("isRadioActSeqFromToChange", (data) => {
|
||||
reset();
|
||||
}
|
||||
});
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
emitter.off("actRadioData");
|
||||
emitter.off("reset");
|
||||
emitter.off("isRadioChange");
|
||||
emitter.off("isRadioProcessScopeChange");
|
||||
emitter.off("isRadioActSeqMoreChange");
|
||||
emitter.off("isRadioActSeqFromToChange");
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user