mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-05-14 17:38:16 +08:00
fix: copy invite link has duplicated origin (#3608)
This commit is contained in:
parent
de3b490f8e
commit
3aa182e26a
@ -18,7 +18,7 @@ const InvitationLink = ({
|
||||
const selector = useRef(`invite-link-${randomString(4)}`)
|
||||
|
||||
const copyHandle = useCallback(() => {
|
||||
copy(window.location.origin + value.url)
|
||||
copy(`${!value.url.includes('http://') ? window.location.origin : ''}${value.url}`)
|
||||
setIsCopied(true)
|
||||
}, [value])
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user