UNPKG

@tencentcloud/roomkit-web-vue3

Version:

<h1 align="center"> TUIRoomKit</h1> Conference (TUIRoomKit) is a product suitable for multi-person audio and video conversation scenarios such as business meetings, webinars, and online education. By integrating this product, you can add room management,

48 lines (40 loc) 1.17 kB
import { computed } from 'vue'; import { TUIToast, TOAST_TYPE } from '@tencentcloud/uikit-base-component-vue3'; import { useI18n } from '../../locales'; import { clipBoard } from '../../utils/utils'; import i18n from '../../locales/index'; export default function useRoomMoreHooks() { const { t } = useI18n(); const groupNumber = '770645461'; const email = 'chaooliang@tencent.com'; async function onCopy(value: string | number) { try { await clipBoard(value); TUIToast({ message: t('Copied successfully'), type: TOAST_TYPE.SUCCESS, }); } catch (error) { TUIToast({ message: t('Copied failure'), type: TOAST_TYPE.ERROR, }); } } const isZH = computed(() => i18n.global.locale.value === 'zh-CN'); const contactContentList = [ { id: 1, title: 'group chat', content: groupNumber, copyLink: groupNumber }, { id: 2, title: 'Email', content: email, copyLink: email }, ]; const handleClick = () => { window.open('https://zhiliao.qq.com/s/c5GY7HIM62CK', '_blank'); }; return { t, onCopy, contactContentList, email, handleClick, isZH, }; }