bug fix
This commit is contained in:
		
							parent
							
								
									b78aef9a15
								
							
						
					
					
						commit
						dd6d710182
					
				
							
								
								
									
										4
									
								
								coco.js
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								coco.js
									
									
									
									
									
								
							@ -5,7 +5,7 @@ const colors = require('colors')
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
function routeNow () {
 | 
					function routeNow () {
 | 
				
			||||||
  const pageNow = globalThis.getCurrentPages()[globalThis.getCurrentPages().length - 1]
 | 
					  const pageNow = globalThis.getCurrentPages()[globalThis.getCurrentPages().length - 1]
 | 
				
			||||||
  return pageNow()?.route || 'VueApp'
 | 
					  return pageNow?.route || 'VueApp'
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
module.exports =
 | 
					module.exports =
 | 
				
			||||||
@ -70,7 +70,7 @@ module.exports =
 | 
				
			|||||||
          console.log(colors.blue(new Date().toJSON()), ...args)
 | 
					          console.log(colors.blue(new Date().toJSON()), ...args)
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        ccinfo (...args) {
 | 
					        ccinfo (...args) {
 | 
				
			||||||
          console.info('ℹ️', colors.green(new Date().toJSON()), ...args)
 | 
					          console.info('ℹ️', colors.blue(new Date().toJSON()), ...args)
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        ccgood (...args) {
 | 
					        ccgood (...args) {
 | 
				
			||||||
          console.info('✅', colors.green(new Date().toJSON()), ...args)
 | 
					          console.info('✅', colors.green(new Date().toJSON()), ...args)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user