fix_invitation-link.tsx_url_more_basepath_bug

pull/19453/head
qingguo 1 year ago
parent 8651cb14f8
commit d51a6815fc

@ -18,7 +18,7 @@ const InvitationLink = ({
const selector = useRef(`invite-link-${randomString(4)}`) const selector = useRef(`invite-link-${randomString(4)}`)
const copyHandle = useCallback(() => { const copyHandle = useCallback(() => {
//No prefix is needed here because the backend has already processed it // No prefix is needed here because the backend has already processed it
copy(`${!value.url.startsWith('http') ? window.location.origin : ''}${value.url}`) copy(`${!value.url.startsWith('http') ? window.location.origin : ''}${value.url}`)
setIsCopied(true) setIsCopied(true)
}, [value]) }, [value])

Loading…
Cancel
Save