fix: style rerender due to setting themeColor

This commit is contained in:
qingwei.li 2017-07-24 18:57:41 +08:00
parent f59aac478a
commit 17ff3d1506

View File

@ -211,7 +211,9 @@ export function initRender (vm) {
dom.before(navAppendToTarget, navEl)
if (config.themeColor) {
dom.$.head.innerHTML += tpl.theme(config.themeColor)
dom.$.head.appendChild(
dom.create('div', tpl.theme(config.themeColor)).getRootNode()
)
// Polyfll
cssVars(config.themeColor)
}