Explorar o código

修复背景图片的开关

xushiting %!s(int64=2) %!d(string=hai) anos
pai
achega
bf972df704
Modificáronse 1 ficheiros con 2 adicións e 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();
   }