From 4316c849912dcaa4e968d2d87001ed6d8b825390 Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Fri, 11 Mar 2022 20:36:19 +0800 Subject: [PATCH] u --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 48b6c0b..19287da 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:skyblue', ...args) + console.log('%c '+JSON.stringify({time:new Date().toJSON(), page:pageName}), 'color:blue', ...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.log('%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:blue', 'background:blue') let result = {} if (backend === 'UNICLOUD') { let { /* success, header, requestedId, */ result: resultCloud = {} } = await uniCloud