12345678910111213141516171819 |
- import { getApp } from "/@/hooks/userApp";
- import { useRtcStore } from "/@/store/modules/rtc";
- // 同屏帶看
- export async function handleSync(data: any) {
- try {
- const app = getApp();
- const rtcStore = useRtcStore();
- if (!rtcStore.isLeader) {
- // app.Connect.follow.start({ follow: false });
- // console.log('app.Connect.follow', app.Connect.follow.started)
- app.Connect.follow.receive(data);
- }
- } catch (error) {
- }
- }
|