黄琪勇 1 year ago
parent
commit
fdba923977
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/attend-class/component/tools/pen.tsx

+ 2 - 2
src/views/attend-class/component/tools/pen.tsx

@@ -53,7 +53,7 @@ export default defineComponent({
     let src = `${origin}/classroom-whiteboard?t=${+new Date()}`;
 
     if (props.type === 'call') {
-      src = `http://localhost:5002/roll-call/index.html?t=${+new Date()}&platform=modal&imagePos=${
+      src = `${origin}/roll-call/index.html?t=${+new Date()}&platform=modal&imagePos=${
         props.imagePos
       }`;
     }
@@ -90,7 +90,7 @@ export default defineComponent({
             if (props.type === 'call') {
               const iframeRef: any = document.getElementById(penIframeRefId);
               if (iframeRef && iframeRef.contentWindow.renderData) {
-                iframeRef.contentWindow.renderData([...props.callStudents,...props.callStudents]);
+                iframeRef.contentWindow.renderData(props.callStudents);
               }
             }
             iframeDislableKeyboard(val.target);