MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / preview

Function preview

src/components/Grid/imageViewer/index.jsx:69–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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">

Callers 1

ImageViewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected