Explorar el Código

修复背景图片的开关

xushiting hace 2 años
padre
commit
bf972df704
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/graphic/Controls/UIControl.js

+ 2 - 1
src/graphic/Controls/UIControl.js

@@ -212,7 +212,8 @@ export default class UIControl {
   // value 为true则开 false则关
   menu_backgroundImg(value) {
     //
-    this.graphicStateUI.showBackImage = value;
+    const backgroundImg = dataService.getBackgroundImg();
+    backgroundImg.setDisplay(value);
     this.layer.renderer.autoRedraw();
   }