Преглед на файлове

fix: 修复图片裁剪组件问题

xiaoxian521 преди 3 години
родител
ревизия
fe2cf22e23
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/components/ReCropper/src/index.tsx

+ 2 - 2
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();
       });