提交 ffc7279c 编写于 作者: Q qiang

fix(App): 修复纯 nvue 编译模式下 pages.json 缺少 style 节点编译报错的问题

上级 bd13b207
......@@ -69,6 +69,7 @@ module.exports = function (content, map) {
}
Object.assign(appJson.globalStyle, appJson.globalStyle['app-plus'] || {})
pageJson.style = pageJson.style || {}
Object.assign(pageJson.style, pageJson.style['app-plus'] || {})
const pageJsonStyle = Object.assign(appJson.globalStyle, pageJson.style)
if (pageJsonStyle.disableScroll === true) {
......@@ -78,4 +79,4 @@ module.exports = function (content, map) {
this.callback(null,
`<scroll-view :scroll-y="true" :show-scrollbar="${pageJsonStyle.scrollIndicator === 'none' ? 'false' : 'true'}" :enableBackToTop="true" bubble="true" style="flex-direction:column">${content}</scroll-view>`,
map)
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册