张延森 3 年 前
コミット
6a62c3f337
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1
    1
      src/components/barcode/CodeText.jsx

+ 1
- 1
src/components/barcode/CodeText.jsx ファイルの表示

@@ -8,7 +8,7 @@ export default (props) => {
8 8
   return (
9 9
     <View className='barcode-txt'>
10 10
       {
11
-        code.split('').map(it => (<View key={it}>{it}</View>))
11
+        code && code.split('').map(it => (<View key={it}>{it}</View>))
12 12
       }
13 13
     </View>
14 14
   )