u
This commit is contained in:
parent
74ac3ea8dc
commit
4316c84991
4
index.js
4
index.js
@ -22,7 +22,7 @@ export default {
|
|||||||
cclog(...args) {
|
cclog(...args) {
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
const pageName = this.thisPage()?.route || 'VueApp'
|
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) {
|
ccinfo(...args) {
|
||||||
@ -144,7 +144,7 @@ export default {
|
|||||||
**/
|
**/
|
||||||
async callBackend({ backend = this.BACKEND, httpMethod = 'POST', apiVersion = 'api', apiWho, apiTodo, apiWhat = {} }) {
|
async callBackend({ backend = this.BACKEND, httpMethod = 'POST', apiVersion = 'api', apiWho, apiTodo, apiWhat = {} }) {
|
||||||
process.env.NODE_ENV === 'production'
|
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 = {}
|
let result = {}
|
||||||
if (backend === 'UNICLOUD') {
|
if (backend === 'UNICLOUD') {
|
||||||
let { /* success, header, requestedId, */ result: resultCloud = {} } = await uniCloud
|
let { /* success, header, requestedId, */ result: resultCloud = {} } = await uniCloud
|
||||||
|
Loading…
Reference in New Issue
Block a user