From 6fa3ae6698ae318dc443c964ae1cab6f3a9f9da1 Mon Sep 17 00:00:00 2001 From: sky-admin <546485299@qq.com> Date: Mon, 29 Apr 2019 11:23:33 +0800 Subject: [PATCH] compatible --- packages/webpack-plugin/lib/runtime/injectHelper.wxs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/webpack-plugin/lib/runtime/injectHelper.wxs b/packages/webpack-plugin/lib/runtime/injectHelper.wxs index 2a860a02a..e37b3b8a0 100644 --- a/packages/webpack-plugin/lib/runtime/injectHelper.wxs +++ b/packages/webpack-plugin/lib/runtime/injectHelper.wxs @@ -91,6 +91,7 @@ function isDef (v) { } function stringifyClass (value) { + if (value === undefined) return '' if (likeArray(value)) { return stringifyArray(value) } @@ -178,6 +179,7 @@ function mergeObjectArray (arr) { } function normalizeDynamicStyle (value) { + if (value === undefined) return {} if (likeArray(value)) { return mergeObjectArray(value) }