提交 885e8af0 编写于 作者: d-u-a's avatar d-u-a

update: 优化编译器提示: pages.json page对象配置错误2

上级 f449d6a6
......@@ -111,7 +111,7 @@ function isNVuePage (page, root = '') {
}
function isValidPage (page, root = '') {
if (typeof page === 'string') { // 不合法的配置
if (typeof page === 'string' || !page.path) { // 不合法的配置
console.warn(`pages.json 页面配置错误, 已被忽略, 查看文档: https://uniapp.dcloud.io/collocation/pages?id=pages`)
return false
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册