Evan You 9 лет назад
Родитель
Сommit
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) {
           res += `${hyphenate(key)}:${styles[key]};`
         }
-        res += staticStyle
+        res += staticStyle || ''
       }
     }
     return ` style=${JSON.stringify(res)}`