diff --git a/packages/uni-cli-shared/components/unicloud-db.vue b/packages/uni-cli-shared/components/unicloud-db.vue index fdeeb6695d58b4d76e6937802798ff70f6f2b621..2188d27ac86872b6c7109fcc30e12d0ea2a929b5 100644 --- a/packages/uni-cli-shared/components/unicloud-db.vue +++ b/packages/uni-cli-shared/components/unicloud-db.vue @@ -334,7 +334,12 @@ export default { // #ifdef H5 if (process.env.NODE_ENV === 'development') { this._debugDataList.length = 0 - this._debugDataList.push(...JSON.parse(JSON.stringify(this.dataList))) + let formatData = JSON.parse(JSON.stringify(this.dataList)) + if (Array.isArray(this.dataList)) { + this._debugDataList.push(...formatData) + } else { + this._debugDataList.push(formatData) + } } // #endif }).catch((err) => {