diff --git a/src/components/ReCropper/src/index.tsx b/src/components/ReCropper/src/index.tsx index b0d404ac4..9010f8154 100644 --- a/src/components/ReCropper/src/index.tsx +++ b/src/components/ReCropper/src/index.tsx @@ -1,7 +1,7 @@ import type { CSSProperties } from "vue"; import { defineComponent, - onBeforeMount, + onMounted, nextTick, ref, unref, @@ -113,7 +113,7 @@ export default defineComponent({ }); } - onBeforeMount(() => { + onMounted(() => { nextTick(() => { init(); });