Explorar o código

fix flow error

Evan You %!s(int64=9) %!d(string=hai) anos
pai
achega
fea13b8aed
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/platforms/web/server/modules/style.js

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

@@ -17,7 +17,7 @@ export default function renderStyle (node: VNodeWithData): ?string {
         for (const key in styles) {
           res += `${hyphenate(key)}:${styles[key]};`
         }
-        res += staticStyle
+        res += staticStyle || ''
       }
     }
     return ` style=${JSON.stringify(res)}`