Browse Source

修复背景图片的开关

xushiting 2 years ago
parent
commit
bf972df704
1 changed files with 2 additions and 1 deletions
  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();
   }