From fe2cf22e23b48ebd1739082d1570458af74986cd Mon Sep 17 00:00:00 2001 From: xiaoxian521 <1923740402@qq.com> Date: Tue, 21 Sep 2021 02:36:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E8=A3=81=E5=89=AA=E7=BB=84=E4=BB=B6=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/ReCropper/src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); });