Skip to content

Commit

Permalink
fix: 修复调用 setSheetZoom API时图片未更新的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
ttheitao authored Jun 30, 2022
1 parent 09206e5 commit 44a2776
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/global/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -5479,7 +5479,12 @@ export function setSheetZoom(zoom, options = {}) {

if(file.index == Store.currentSheetIndex){
Store.zoomRatio = zoom;

// 图片
let currentSheet = sheetmanage.getSheetByIndex();
imageCtrl.images = currentSheet.images;
imageCtrl.allImagesShow();
imageCtrl.init();

zoomNumberDomBind();
zoomRefreshView();
}
Expand Down

0 comments on commit 44a2776

Please sign in to comment.