ソースを参照

fix flow error

Evan You 10 年 前
コミット
fea13b8aed
1 ファイル変更1 行追加1 行削除
  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) {
         for (const key in styles) {
           res += `${hyphenate(key)}:${styles[key]};`
           res += `${hyphenate(key)}:${styles[key]};`
         }
         }
-        res += staticStyle
+        res += staticStyle || ''
       }
       }
     }
     }
     return ` style=${JSON.stringify(res)}`
     return ` style=${JSON.stringify(res)}`