perf: 优化演示页面

This commit is contained in:
xiaoxian521
2024-01-17 11:05:35 +08:00
parent 9ca6941946
commit db723b7908
51 changed files with 432 additions and 404 deletions

View File

@@ -129,6 +129,11 @@ export default defineComponent({
onUnmounted(() => {
cropper.value?.destroy();
isReady.value = false;
cropper.value = null;
imgBase64.value = "";
scaleX = 1;
scaleY = 1;
});
useResizeObserver(tippyElRef, () => handCropper("reset"));