From 8b6942e0ac40097d7f640c1001adccf87ad567bd Mon Sep 17 00:00:00 2001 From: dongqing Date: Thu, 21 Nov 2019 14:21:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A9=BA=20view=20=E4=B8=8D=E7=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pen.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/pen.js b/lib/pen.js index df63baf..be90f91 100644 --- a/lib/pen.js +++ b/lib/pen.js @@ -52,6 +52,9 @@ export default class Painter { } _drawAbsolute(view) { + if (!view) { + return + } // 证明 css 为数组形式,需要合并 if (view.css && view.css.length) { /* eslint-disable no-param-reassign */