rename clog to colog to minimize conflicting
This commit is contained in:
parent
d0e05199b1
commit
ba3daba80d
2
index.js
2
index.js
@ -23,7 +23,7 @@ module.exports = {
|
|||||||
BACKEND: 'SERVER', // 通过变量来动态切换后台类型:服务器 SERVER,或云服务 CLOUD。应当根据实际需要,在前端所用的 unitool 里覆盖。
|
BACKEND: 'SERVER', // 通过变量来动态切换后台类型:服务器 SERVER,或云服务 CLOUD。应当根据实际需要,在前端所用的 unitool 里覆盖。
|
||||||
|
|
||||||
// 快速输出详尽提示,可用来取代 console.log
|
// 快速输出详尽提示,可用来取代 console.log
|
||||||
clog(...message) {
|
colog(...message) {
|
||||||
process.env.NODE_ENV === 'production' || console.log(
|
process.env.NODE_ENV === 'production' || console.log(
|
||||||
'【',
|
'【',
|
||||||
getCurrentPages().length > 0 ? getCurrentPages().pop().route : 'App', // 在首页时,getApp() 或 getCurrentPages() 有可能获取不到。
|
getCurrentPages().length > 0 ? getCurrentPages().pop().route : 'App', // 在首页时,getApp() 或 getCurrentPages() 有可能获取不到。
|
||||||
|
Loading…
Reference in New Issue
Block a user