File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
examples/dist/image-picker Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ Component({
76
76
this . setData ( {
77
77
newOrOld
78
78
} ) ;
79
- if ( newOrOld == 'old' ) {
79
+ if ( newOrOld === 'old' ) {
80
80
console . warn ( 'image-picker组件已经升级,建议使用最新版本,当前用法会在后续版本中暂停支持' ) ;
81
81
}
82
82
} ,
@@ -110,7 +110,7 @@ Component({
110
110
let previewImageList = [ ] ;
111
111
const newOrOld = this . data . newOrOld ;
112
112
113
- if ( newOrOld == 'old' ) {
113
+ if ( newOrOld === 'old' ) {
114
114
tempFilePath = this . data . urls [ index ] ;
115
115
previewImageList = this . data . urls ;
116
116
@@ -240,8 +240,8 @@ Component({
240
240
241
241
judgeNewOrOld : function ( ) {
242
242
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' ) {
245
245
return 'old' ;
246
246
}
247
247
return 'new' ;
You can’t perform that action at this time.
0 commit comments