u
This commit is contained in:
parent
fa20d06a42
commit
241798d443
@ -37,7 +37,7 @@ export default {
|
|||||||
console.error('%c ' + JSON.stringify({ time: new Date().toJSON(), page: pageName }), 'color:red', ...args)
|
console.error('%c ' + JSON.stringify({ time: new Date().toJSON(), page: pageName }), 'color:red', ...args)
|
||||||
},
|
},
|
||||||
ccdebug (...args) {
|
ccdebug (...args) {
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV !== 'production') {
|
||||||
const pageName = this.thisPage()?.route || 'VueApp'
|
const pageName = this.thisPage()?.route || 'VueApp'
|
||||||
console.debug('%c ' + JSON.stringify({ time: new Date().toJSON(), page: pageName }), 'color:cyan', ...args)
|
console.debug('%c ' + JSON.stringify({ time: new Date().toJSON(), page: pageName }), 'color:cyan', ...args)
|
||||||
}
|
}
|
||||||
@ -229,7 +229,7 @@ export default {
|
|||||||
}
|
}
|
||||||
// 注意1,resultServer 和 resultCloud 推荐遵循同样的格式 { _state, error | data },这样方便前端做统一判断。
|
// 注意1,resultServer 和 resultCloud 推荐遵循同样的格式 { _state, error | data },这样方便前端做统一判断。
|
||||||
// 注意2,虽然预设了 resultServer 和 resultCloud = {},但如果后台返回了 null,那么 resultServer/resultCloud 也是 null。
|
// 注意2,虽然预设了 resultServer 和 resultCloud = {},但如果后台返回了 null,那么 resultServer/resultCloud 也是 null。
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV !== 'production') {
|
||||||
console.log(
|
console.log(
|
||||||
'%c ' +
|
'%c ' +
|
||||||
JSON.stringify({ startTime: startTime, page: thisRoute, endTime: new Date().toJSON() }) +
|
JSON.stringify({ startTime: startTime, page: thisRoute, endTime: new Date().toJSON() }) +
|
||||||
@ -343,7 +343,7 @@ export default {
|
|||||||
return { _state: 'CLIENT_FAIL_UNKNOWN_MEDIA_TYPE' }
|
return { _state: 'CLIENT_FAIL_UNKNOWN_MEDIA_TYPE' }
|
||||||
}
|
}
|
||||||
|
|
||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV !== 'production') {
|
||||||
cloudPath = 'dev_' + cloudPath
|
cloudPath = 'dev_' + cloudPath
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user