| 67 | }); |
| 68 | } |
| 69 | const preview = id => { |
| 70 | if (process.env.NODE_ENV === 'development') { |
| 71 | window.open(`http://127.0.0.1:5500/public/iframe/productPreview.html?id=${id}`) // 仅在线上生效 |
| 72 | } else { |
| 73 | window.open(`${window.location.origin}/screen/iframe/productPreview.html?id=${id}`) // 仅在线上生效 |
| 74 | |
| 75 | } |
| 76 | } |
| 77 | return ( |
| 78 | <div className='image-viewer'> |
| 79 | <div className="card-container"> |