mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-01 10:48:37 +08:00
fix: copy invite link for HTTPS has deplicate origin (#3877)
This commit is contained in:
parent
7d711135bc
commit
2e454c770b
@ -18,7 +18,7 @@ const InvitationLink = ({
|
||||
const selector = useRef(`invite-link-${randomString(4)}`)
|
||||
|
||||
const copyHandle = useCallback(() => {
|
||||
copy(`${!value.url.includes('http://') ? window.location.origin : ''}${value.url}`)
|
||||
copy(`${!value.url.startsWith('http') ? window.location.origin : ''}${value.url}`)
|
||||
setIsCopied(true)
|
||||
}, [value])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user