rename clog to colog to minimize conflicting

This commit is contained in:
陆柯 2021-10-04 17:57:31 +08:00
parent d0e05199b1
commit ba3daba80d

View File

@ -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() 有可能获取不到。