Browse Source

modify text

haojianlong 5 years ago
parent
commit
0292d6bda4
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/assets/graphy/SGraphy/mainScene.js
  2. 1 1
      src/assets/graphy/SGraphy/mainScene.ts

+ 1 - 1
src/assets/graphy/SGraphy/mainScene.js

@@ -194,7 +194,7 @@ var mainScene = /** @class */ (function (_super) {
         var _this_1 = this;
         if (imageList && imageList.length) {
             imageList.map(function (t) {
-                _this_1.addItem(new SGraphyImgItem(null, t.X, t.Y, t.width, t.height));
+                _this_1.addItem(new SGraphyImgItem(null, t.img, t.X, t.Y, t.width, t.height));
             });
         }
     };

+ 1 - 1
src/assets/graphy/SGraphy/mainScene.ts

@@ -182,7 +182,7 @@ export default class mainScene extends SGraphyScene {
     addImageList(imageList: ImgItemInterface[]): void {
         if (imageList && imageList.length) {
             imageList.map(t => {
-                this.addItem(new SGraphyImgItem(null, t.X, t.Y, t.width, t.height))
+                this.addItem(new SGraphyImgItem(null, t.img, t.X, t.Y, t.width, t.height))
             })
         }
     }