Evan You vor 9 Jahren
Ursprung
Commit
b3cc0efc7b
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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