|
|
@@ -1280,6 +1280,7 @@ export class CanvasPhotoEditor {
|
|
|
if (this.selectedPageItem.index == -1) {
|
|
|
// this.resetPosition()
|
|
|
}
|
|
|
+ this.saveHistory();
|
|
|
return this.pages
|
|
|
}
|
|
|
|
|
|
@@ -1877,7 +1878,11 @@ export class CanvasPhotoEditor {
|
|
|
}
|
|
|
}
|
|
|
async checkIndexing(mes = '此操作将会清除所有标引是否继续?') {
|
|
|
- let length = this.indexingLineList.length;
|
|
|
+ let newList = this.indexingLineList.filter(ele =>{
|
|
|
+ return ele.indexingList.some(item => item.pageIndex > this.selectedPageIndex-1)
|
|
|
+ })
|
|
|
+ console.log(this.indexingLineList,'this.indexingLineList', newList, this.selectedPageIndex)
|
|
|
+ let length = this.selectedPageIndex==-1?this.indexingLineList.length:newList.length;
|
|
|
// try {
|
|
|
if (length && await ElMessageBox.confirm(mes, '提示')) {
|
|
|
this.saveHistory();
|