tangning 19 時間 前
コミット
95e0e2a8f7

+ 1 - 5
src/view/case/photos/canvas-photo-editor.js

@@ -518,7 +518,7 @@ export class CanvasPhotoEditor {
       points.splice(1, 0, { x: newX, y: this.indexingStartY }, { x: newX, y: endIindexing1.y })
     }
     if(startInfo.count == PhotoIndex.count && startInfo.itemIndex == PhotoIndex.itemIndex ){//同数量 同item
-      
+
     }
     this.tempArrow.start = null
     this.tempArrow.end = null
@@ -921,7 +921,6 @@ export class CanvasPhotoEditor {
       const layout = this.getItemSize(layoutModePages)
       pagePhotos.coordinate = this.getCoordinate(pageX, layout)
       pagePhotos.item = pagePhotos.item || new Array(layout.count).fill(null);
-      console.log('getCoordinate', pagePhotos)
       let newList = this.padArrayLength(pagePhotos.list, layout.count)
       newList.forEach((photoId, itemIndex) => {
         let itemY = layoutModePages === 'single' || layoutModePages === 'landscape'
@@ -952,12 +951,10 @@ export class CanvasPhotoEditor {
           ...imgItem,
           ...pagePhotos.item[itemIndex],
         }
-        console.log('this.s', imgItem, photoId, this.photos)
         this.renderSinglePhoto(ctx, pageX, itemY, layout, pagePhotos.item[itemIndex])
       })
     })
     ctx.restore()
-    console.log('this.dragPageData', this.dragPageData)
     if(this.tempArrow.drawing && this.indexing){//绘制实时鼠标标引
         this.drawInterimLine([this.tempArrow.start,this.tempArrow.end])
     }
@@ -1033,7 +1030,6 @@ export class CanvasPhotoEditor {
     // 4. 恢复上下文(裁剪失效)
     // 图片未加载完成则跳过
     const jxx = pageX + layout.x;
-    console.log('this.dragPageData', img, photo)
     if (!img || !img.complete || img.width === 0 || img.height === 0) {//无图
 
     } else {

+ 4 - 0
src/view/case/photos/index.vue

@@ -368,6 +368,10 @@ const handleSee = async () => {
     type: "success",
     message: "保存成功",
   });
+  editor.value.history = [];
+  editor.value.currentIndex = -1;
+  editor.value.saveHistory();
+
   if (!id) {
     router.replace({
       name: RouteName.drawCasePhotos,