Quellcode durchsuchen

点击菜单只暂停不重置

lex vor 1 Jahr
Ursprung
Commit
a43bc4c4e0

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

@@ -35,9 +35,9 @@ export default defineComponent({
     });
     const firstRender = ref(true);
     const origin = /(localhost|192)/.test(location.host)
-      ? // ? 'https://test.lexiaoya.cn/'
-        'http://localhost:5002/'
-      : location.origin;
+      ? 'https://test.lexiaoya.cn/'
+      : // 'http://localhost:5002/'
+        location.origin;
     let src = `${origin}/classroom-whiteboard?t=${+new Date()}`;
 
     if (props.type === 'call') {

+ 3 - 2
src/views/attend-class/index.tsx

@@ -463,6 +463,7 @@ export default defineComponent({
 
     /**停止所有的播放 */
     const handleStop = (isStop = true) => {
+      console.log(isStop, 'stop');
       for (let i = 0; i < data.itemList.length; i++) {
         const activeItem = data.itemList[i];
         if (activeItem.type === 'VIDEO' && activeItem.videoEle) {
@@ -971,7 +972,7 @@ export default defineComponent({
 
     /** 打开教学工具 */
     const openStudyTool = (item: ToolItem) => {
-      handleStop();
+      handleStop(false);
       clearModel();
       popupData.toolOpen = false;
       studyData.type = item.type;
@@ -1235,7 +1236,7 @@ export default defineComponent({
     // 右边栏操作
     const operateRightBtn = async (id: number) => {
       if (id !== 8) {
-        handleStop();
+        handleStop(false);
       }
 
       switch (id) {