Skip to content

Commit c3e138e

Browse files
committed
refactor(image-picker): 将js文件中的==改为===
1 parent 259f958 commit c3e138e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Component({
7676
this.setData({
7777
newOrOld
7878
});
79-
if (newOrOld == 'old') {
79+
if (newOrOld === 'old') {
8080
console.warn('image-picker组件已经升级,建议使用最新版本,当前用法会在后续版本中暂停支持');
8181
}
8282
},
@@ -110,7 +110,7 @@ Component({
110110
let previewImageList = [];
111111
const newOrOld = this.data.newOrOld;
112112

113-
if (newOrOld == 'old') {
113+
if (newOrOld === 'old') {
114114
tempFilePath = this.data.urls[index];
115115
previewImageList = this.data.urls;
116116

@@ -240,8 +240,8 @@ Component({
240240

241241
judgeNewOrOld: function () {
242242
const urls = this.data.urls;
243-
if (urls.length != 0) {
244-
if (typeof (urls[0]) != 'object') {
243+
if (urls.length !== 0) {
244+
if (typeof (urls[0]) !== 'object') {
245245
return 'old';
246246
}
247247
return 'new';

0 commit comments

Comments
 (0)