Browse Source

导出图片

tangning 13 hours ago
parent
commit
d45cec1d5f
2 changed files with 336 additions and 390 deletions
  1. 335 388
      src/view/case/photos/canvas-photo-editor.js
  2. 1 2
      src/view/case/photos/index.vue

File diff suppressed because it is too large
+ 335 - 388
src/view/case/photos/canvas-photo-editor.js


+ 1 - 2
src/view/case/photos/index.vue

@@ -656,12 +656,11 @@ const handleDragOver = (e) => {
 // 拖拽放下
 const handleDrop = async (e) => {
   if (!draggedPhoto.value || !editor.value) return;
-  const check = await editor.value.checkIndexing();
+  // const check = await editor.value.checkIndexing();
   // 获取拖拽到的页面和位置
   const position = editor.value.getPhotoPositionInPage(e);
   const { pageIndex, itemIndex } = position;
 
-  console.log("saveHistory", editor.value.history);
   if (pageIndex === -1 || itemIndex === -1) return;
   pages.value = editor.value.pages;
   // 更新页面数据