This commit is contained in:
陆柯 2023-01-19 18:44:12 +08:00
parent b78aef9a15
commit dd6d710182

View File

@ -5,7 +5,7 @@ const colors = require('colors')
function routeNow () {
const pageNow = globalThis.getCurrentPages()[globalThis.getCurrentPages().length - 1]
return pageNow()?.route || 'VueApp'
return pageNow?.route || 'VueApp'
}
module.exports =
@ -70,7 +70,7 @@ module.exports =
console.log(colors.blue(new Date().toJSON()), ...args)
},
ccinfo (...args) {
console.info('', colors.green(new Date().toJSON()), ...args)
console.info('', colors.blue(new Date().toJSON()), ...args)
},
ccgood (...args) {
console.info('✅', colors.green(new Date().toJSON()), ...args)