Evan You 9 лет назад
Родитель
Сommit
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