Evan You 9 年之前
父節點
當前提交
b3cc0efc7b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/platforms/web/runtime/modules/style.js

+ 1 - 1
src/platforms/web/runtime/modules/style.js

@@ -27,7 +27,7 @@ function updateStyle (oldVnode: VNodeWithData, vnode: VNodeWithData) {
   let cur, name
   const elm: any = vnode.elm
   const oldStyle: any = oldVnode.data.style || {}
-  let style = vnode.data.style || {}
+  let style: any = vnode.data.style || {}
   const needClone = style.__ob__
 
   // handle array syntax