UNPKG

@tencentcloud/call-uikit-vue2

Version:

An Open-source Voice & Video Calling UI Component Based on Tencent Cloud Service.

13 lines (10 loc) 386 B
import { watch, ref } from '../../adapter-vue'; import { useCustomUI } from './useCustomUI'; export function useViewBackgroundConfig() { const customUIConfig = useCustomUI(); const viewBackgroundObj = ref(customUIConfig.value.viewBackground); watch(customUIConfig, () => { viewBackgroundObj.value = customUIConfig.value.viewBackground; }); return viewBackgroundObj; }