This commit is contained in:
2026-06-17 17:39:41 +03:30
parent 8fea618b18
commit 137f793ae0
9 changed files with 124 additions and 125 deletions
@@ -35,7 +35,7 @@
import { useUserStore } from '@/store/userStore'
import BasicButton from '@/components/BasicPacks/BasicButton.vue'
import { message } from 'ant-design-vue'
import { getReferralShareText, getReferralShareTitle } from '@/utils/config'
import { getReferralShareText, getReferralShareTitle, shareReferralText } from '@/utils/referralShare'
const userStore = useUserStore()
@@ -45,7 +45,7 @@ const shareCode = () => {
referralId: userStore.userInfo?.referral_id,
})
navigator.share({ title: getReferralShareTitle(), text })
void shareReferralText(text, getReferralShareTitle())
}
const copyCode = () => {
@@ -40,7 +40,7 @@ import BasicModal from '@/components/BasicPacks/BasicModal.vue'
import BasicButton from '@/components/BasicPacks/BasicButton.vue'
import { message } from 'ant-design-vue'
import { useUserStore } from '@/store/userStore'
import { getReferralShareText, getReferralShareTitle } from '@/utils/config'
import { getReferralShareText, getReferralShareTitle, shareReferralText } from '@/utils/referralShare'
const props = withDefaults(
defineProps<{
@@ -69,7 +69,7 @@ const shareCode = () => {
referralId: props.referralId,
})
navigator.share({ title: getReferralShareTitle(), text })
void shareReferralText(text, getReferralShareTitle())
}
const copyCode = () => {