tangning 5 godzin temu
rodzic
commit
09584a4759
1 zmienionych plików z 2 dodań i 4 usunięć
  1. 2 4
      src/view/case/photos/canvas-photo-editor.js

+ 2 - 4
src/view/case/photos/canvas-photo-editor.js

@@ -1292,16 +1292,14 @@ export class CanvasPhotoEditor {
       newPages.splice(this.selectedPageIndex, 1)
     } else {//删除单个图片
       const check = await this.checkIndexing();
-      newPages = this.removeAndFill(newPages, this.selectedPageIndex, this.selectedPageItem.index)
+      this.removeAndFill(newPages, this.selectedPageIndex, this.selectedPageItem.index)
     }
     this.selectedPageIndex = -1
     this.selectedPageItem.pageIndex = -1
-    // this.selectedPageIndex = Math.min(this.selectedPageIndex, this.pages.length - 1)
     if (this.selectedPageItem.index == -1) {
-      // this.resetPosition()
     }
+    this.pages = newPages
     this.saveHistory();
-    this.drawAllPages()
     return this.pages
   }