forked from verdnatura/salix-front
chore: refs #6818 drop useless code & comment
This commit is contained in:
parent
e29cd38ae9
commit
83be57a0c4
|
@ -9,7 +9,7 @@ const props = defineProps({
|
||||||
const config = reactive({
|
const config = reactive({
|
||||||
sip: { icon: 'phone', href: `sip:${props.phoneNumber}` },
|
sip: { icon: 'phone', href: `sip:${props.phoneNumber}` },
|
||||||
'say-simple': {
|
'say-simple': {
|
||||||
icon: 'help', // 'whatsapp icon #6818',
|
icon: 'help',
|
||||||
href: null,
|
href: null,
|
||||||
channel: props.channel,
|
channel: props.channel,
|
||||||
},
|
},
|
||||||
|
@ -20,8 +20,7 @@ onBeforeMount(async () => {
|
||||||
let url;
|
let url;
|
||||||
let { channel } = config[type];
|
let { channel } = config[type];
|
||||||
|
|
||||||
if (type === 'sip') return;
|
if (type === 'say-simple') {
|
||||||
else if (type === 'say-simple') {
|
|
||||||
url = (await axios.get('SaySimpleConfigs/findOne')).data.url;
|
url = (await axios.get('SaySimpleConfigs/findOne')).data.url;
|
||||||
if (!channel)
|
if (!channel)
|
||||||
channel = (
|
channel = (
|
||||||
|
|
Loading…
Reference in New Issue