From 83be57a0c4dc88180c52fb08e71de9071c305d83 Mon Sep 17 00:00:00 2001 From: jorgep Date: Tue, 12 Nov 2024 15:01:17 +0100 Subject: [PATCH] chore: refs #6818 drop useless code & comment --- src/components/ui/VnLinkPhone.vue | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/components/ui/VnLinkPhone.vue b/src/components/ui/VnLinkPhone.vue index 51694b8eb..11339859e 100644 --- a/src/components/ui/VnLinkPhone.vue +++ b/src/components/ui/VnLinkPhone.vue @@ -9,7 +9,7 @@ const props = defineProps({ const config = reactive({ sip: { icon: 'phone', href: `sip:${props.phoneNumber}` }, 'say-simple': { - icon: 'help', // 'whatsapp icon #6818', + icon: 'help', href: null, channel: props.channel, }, @@ -20,8 +20,7 @@ onBeforeMount(async () => { let url; let { channel } = config[type]; - if (type === 'sip') return; - else if (type === 'say-simple') { + if (type === 'say-simple') { url = (await axios.get('SaySimpleConfigs/findOne')).data.url; if (!channel) channel = (