We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f022080 commit 9f87ff9Copy full SHA for 9f87ff9
1 file changed
src/image-picker/index.js
@@ -121,9 +121,10 @@ Component({
121
let tempFilePath = '';
122
let previewImageList = [];
123
const newOrOld = this.data.newOrOld;
124
+ const cellsIsObject = Object.prototype.toString.call(this.data.cells) === '[object Object]';
125
126
// 第一个 if 是对 cells 的兼容处理
- if (typeof (this.data.cells) !== 'undefined') {
127
+ if (cellsIsObject) {
128
const cells = this.data.cells;
129
tempFilePath = cells[index].url;
130
for (let i = 0; i < cells.length; i++) {
0 commit comments