Feat: Invitation link automatically completes domain name (#3393)

Co-authored-by: huangbaichao <hbc@moonlit.art>
This commit is contained in:
Moonlit 2024-04-12 12:21:03 +08:00 committed by GitHub
parent c9abb75fce
commit b90bc6c348
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,7 +18,7 @@ const InvitationLink = ({
const selector = useRef(`invite-link-${randomString(4)}`)
const copyHandle = useCallback(() => {
copy(value.url)
copy(window.location.origin + value.url)
setIsCopied(true)
}, [value])