From 74ac3ea8dc5530006fb5cb60b72f81287bb74dcc Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Fri, 11 Mar 2022 20:35:02 +0800 Subject: [PATCH] u --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 988d05e..48b6c0b 100644 --- a/index.js +++ b/index.js @@ -22,7 +22,7 @@ export default { cclog(...args) { if (process.env.NODE_ENV === 'development') { const pageName = this.thisPage()?.route || 'VueApp' - console.log('%c '+JSON.stringify({time:new Date().toJSON(), page:pageName}), 'color:grey', ...args) + console.log('%c '+JSON.stringify({time:new Date().toJSON(), page:pageName}), 'color:skyblue', ...args) } }, ccinfo(...args) { @@ -144,7 +144,7 @@ export default { **/ async callBackend({ backend = this.BACKEND, httpMethod = 'POST', apiVersion = 'api', apiWho, apiTodo, apiWhat = {} }) { process.env.NODE_ENV === 'production' - || console.info('%c '+JSON.stringify({time:new Date().toJSON(), page:this.thisPage()?.route || 'VueApp'}) + ' %c '+ JSON.stringify({ backend, apiWho, apiTodo, apiWhat }), 'color:SkyBlue', 'background:SkyBlue') + || console.log('%c '+JSON.stringify({time:new Date().toJSON(), page:this.thisPage()?.route || 'VueApp'}) + ' %c '+ JSON.stringify({ backend, apiWho, apiTodo, apiWhat }), 'color:SkyBlue', 'background:SkyBlue') let result = {} if (backend === 'UNICLOUD') { let { /* success, header, requestedId, */ result: resultCloud = {} } = await uniCloud