Skip to content

Commit 193ff93

Browse files
committed
build: Travis CI automatic compilation
1 parent 9f87ff9 commit 193ff93

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

dist/image-picker/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/dist/image-picker/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,10 @@ Component({
121121
let tempFilePath = '';
122122
let previewImageList = [];
123123
const newOrOld = this.data.newOrOld;
124+
const cellsIsObject = Object.prototype.toString.call(this.data.cells) === '[object Object]';
124125

125126
// 第一个 if 是对 cells 的兼容处理
126-
if (typeof (this.data.cells) !== 'undefined') {
127+
if (cellsIsObject) {
127128
const cells = this.data.cells;
128129
tempFilePath = cells[index].url;
129130
for (let i = 0; i < cells.length; i++) {

0 commit comments

Comments
 (0)