fix_invitation-link.tsx_url_more_basepath_bug

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

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