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

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

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