|
@ -24,7 +24,7 @@ const ProductInfo = (props: ProductInfoProps) => { |
|
|
const [visibleTime, setVisibleTime] = useState(false) |
|
|
const [visibleTime, setVisibleTime] = useState(false) |
|
|
|
|
|
|
|
|
const share = () => { |
|
|
const share = () => { |
|
|
const pathname = `${process.env.REACT_APP_SHARE_LINK}detail?id=${data.id}&type=${data.type}` |
|
|
|
|
|
|
|
|
const pathname = `${window.origin}/#/detail?id=${data.id}&type=${data.type}` |
|
|
copy(pathname) |
|
|
copy(pathname) |
|
|
setVisible(true) |
|
|
setVisible(true) |
|
|
} |
|
|
} |
|
|