paint.ts 299 B

123456789101112
  1. import { getApp } from "/@/hooks/userApp";
  2. import { useRtcStore } from "/@/store/modules/rtc";
  3. // 畫筆
  4. export function handlePaint(data: any) {
  5. const app = getApp();
  6. const rtcStore = useRtcStore();
  7. if (!rtcStore.isLeader) {
  8. app.Connect.paint.receive(data);
  9. }
  10. }