Browse Source

Merge pull request #1077 from ttheitao/patch-1

fix: 修复调用 setSheetZoom API时图片未更新的问题
master
mengshukeji 3 years ago
committed by GitHub
parent
commit
1334be7b31
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/global/api.js

5
src/global/api.js

@ -5479,6 +5479,11 @@ export function setSheetZoom(zoom, options = {}) {
if(file.index == Store.currentSheetIndex){ if(file.index == Store.currentSheetIndex){
Store.zoomRatio = zoom; Store.zoomRatio = zoom;
// 图片
let currentSheet = sheetmanage.getSheetByIndex();
imageCtrl.images = currentSheet.images;
imageCtrl.allImagesShow();
imageCtrl.init();
zoomNumberDomBind(); zoomNumberDomBind();
zoomRefreshView(); zoomRefreshView();

Loading…
Cancel
Save