chore: using includes instead of indexOf (#8261)
This commit is contained in:
+1
-1
@@ -27,7 +27,7 @@ export default createComponent({
|
||||
return Network;
|
||||
}
|
||||
|
||||
if (PRESET_IMAGES.indexOf(image) !== -1) {
|
||||
if (PRESET_IMAGES.includes(image)) {
|
||||
image = `https://img01.yzcdn.cn/vant/empty-image-${image}.png`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user