提交 12ea65c1 编写于 作者: d-u-a's avatar d-u-a

fix: pages.json 没有 globalStyle 节点时编译报错的问题

上级 9455be25
......@@ -56,6 +56,11 @@ module.exports = function(content) {
if (!pageJson) {
return content
}
if (!appJson.globalStyle) {
appJson.globalStyle = {}
}
Object.assign(appJson.globalStyle, appJson.globalStyle['app-plus'] || {})
Object.assign(pageJson.style, pageJson.style['app-plus'] || {})
const pageJsonStyle = Object.assign(appJson.globalStyle, pageJson.style)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册