소스 검색

下载时设置背景色

haojianlong 4 년 전
부모
커밋
798cd1c20e
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/editview/basePlanEditer.vue

+ 1 - 1
src/components/editview/basePlanEditer.vue

@@ -350,7 +350,7 @@ export default {
             bus.$on("savePlanImg", () => {
                 // 隐藏选择器
                 this.scene.selectContainer.clear();
-                this.view.saveImageSize(`${this.planContent.name}.png`, "png", this.canvasWidth, this.canvasHeight);
+                this.view.saveImageSize(`${this.planContent.name}.png`, "png", this.canvasWidth, this.canvasHeight, this.view.backgroundColor.value);
             });
             // 发布图片
             bus.$off("issuePlan");