UNPKG

@tencentcloud/roomkit-electron-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,

44 lines (43 loc) 1.15 kB
import { computed } from "vue"; import renderMsg from "../common/base/Message/Message.mjs"; import i18n, { useI18n } from "../../locales/index.mjs"; import "../../utils/environment.mjs"; import { clipBoard } from "../../utils/adapter.mjs"; function useRoomMoreHooks() { const { t } = useI18n(); const groupNumber = "770645461"; const email = "chaooliang@tencent.com"; async function onCopy(value) { try { await clipBoard(value); renderMsg({ message: t("Copied successfully"), type: "success" }); } catch (error) { renderMsg({ message: t("Copied failure"), 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 }; } export { useRoomMoreHooks as default };