dev01 11 月之前
父节点
当前提交
a20f6add5b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/imagePicker/index.js

+ 1 - 1
src/components/imagePicker/index.js

@@ -147,7 +147,7 @@ export default class ImagePicker extends Component {
     const { api, time, id, num = 1 } = this.props
     return (
       <View className='upload'>
-        {imageUrls && imageUrls.map((url, index) => (
+        {!!id && imageUrls && imageUrls.map((url, index) => (
           <View className='upload-item' key={index}>
             <Image
               className='upload-item-img'