diff --git a/index.js b/index.js index 7dc8825..8bd0a1e 100644 --- a/index.js +++ b/index.js @@ -23,7 +23,7 @@ module.exports = { BACKEND: 'SERVER', // 通过变量来动态切换后台类型:服务器 SERVER,或云服务 CLOUD。应当根据实际需要,在前端所用的 unitool 里覆盖。 // 快速输出详尽提示,可用来取代 console.log - clog(...message) { + colog(...message) { process.env.NODE_ENV === 'production' || console.log( '【', getCurrentPages().length > 0 ? getCurrentPages().pop().route : 'App', // 在首页时,getApp() 或 getCurrentPages() 有可能获取不到。