This commit is contained in:
2026-01-23 22:21:39 +07:00
parent 476c0eb647
commit 5ae0a15a30
15 changed files with 571 additions and 265 deletions

View File

@@ -33,7 +33,10 @@ const auth = useAuthStore()
const isCopied = ref(false)
const url = location.origin + '/ref/' + auth.user?.username
const copyToClipboard = ($event: MouseEvent) => {
($event.target as HTMLInputElement).select()
// ($event.target as HTMLInputElement)?.select
if ($event.target instanceof HTMLInputElement) {
$event.target.select()
}
navigator.clipboard.writeText(url)
isCopied.value = true
setTimeout(() => {