|
@@ -1473,6 +1473,7 @@ resizePageAndReflow(pages, pageIndex, itemValue) {
|
|
|
this.history.splice(this.currentIndex + 1)
|
|
this.history.splice(this.currentIndex + 1)
|
|
|
this.history.push({
|
|
this.history.push({
|
|
|
// imageData: imageData,
|
|
// imageData: imageData,
|
|
|
|
|
+ layoutMode: this.layoutMode, // 保存当前布局模式,以便恢复时使用
|
|
|
pages: JSON.stringify(this.pages), // 保存当前页码信息,以便恢复时使用
|
|
pages: JSON.stringify(this.pages), // 保存当前页码信息,以便恢复时使用
|
|
|
indexingLineList: [...this.indexingLineList], // 保存标引线信息,以便恢复时使用
|
|
indexingLineList: [...this.indexingLineList], // 保存标引线信息,以便恢复时使用
|
|
|
});
|
|
});
|
|
@@ -1496,12 +1497,13 @@ resizePageAndReflow(pages, pageIndex, itemValue) {
|
|
|
// this.saveHistory()
|
|
// this.saveHistory()
|
|
|
// };
|
|
// };
|
|
|
// let newCurrentIndex = type ? currentIndex : (currentIndex + 1)
|
|
// let newCurrentIndex = type ? currentIndex : (currentIndex + 1)
|
|
|
- const { pages, indexingLineList } = this.history[newCurrentIndex]
|
|
|
|
|
|
|
+ const { pages, indexingLineList, layoutMode } = this.history[newCurrentIndex]
|
|
|
console.log("saveHistory", this.history, newCurrentIndex, newCurrentIndex);
|
|
console.log("saveHistory", this.history, newCurrentIndex, newCurrentIndex);
|
|
|
this.indexingLineList = indexingLineList
|
|
this.indexingLineList = indexingLineList
|
|
|
this.isHistory = false //回退不保存
|
|
this.isHistory = false //回退不保存
|
|
|
this.pages = JSON.parse(pages)
|
|
this.pages = JSON.parse(pages)
|
|
|
this.currentIndex = newCurrentIndex
|
|
this.currentIndex = newCurrentIndex
|
|
|
|
|
+ this._layoutMode = layoutMode
|
|
|
|
|
|
|
|
// this.tempArrow.start = null
|
|
// this.tempArrow.start = null
|
|
|
// this.tempArrow.end = null
|
|
// this.tempArrow.end = null
|