From ba3daba80dab1d6fcc48df692036b79e91d35b2c Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Mon, 4 Oct 2021 17:57:31 +0800 Subject: [PATCH] rename clog to colog to minimize conflicting --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() 有可能获取不到。