lsc 1 주 전
부모
커밋
9b0d00c8f0
1개의 변경된 파일12개의 추가작업 그리고 3개의 파일을 삭제
  1. 12 3
      src/views/Student/index.vue

+ 12 - 3
src/views/Student/index.vue

@@ -1906,6 +1906,14 @@ const checkParentMode = () => {
   }
 }
 
+const forceLogout = () => {
+  // @ts-ignore
+  if (window.parent && typeof window.parent.topU.U.MD.U.LO.logoutSystemQ === 'function' && props.type == '2') {
+    // @ts-ignore
+    window.parent.topU.U.MD.U.LO.logoutSystemQ()
+  }
+}
+
 // 检查是否为创建人
 const checkIsCreator = () => {
   // 这里可以根据实际业务逻辑判断是否为创建人
@@ -2049,7 +2057,8 @@ onMounted(() => {
     toggleFollowMode,
     // 添加重连功能
     manualReconnect,
-    connectionStatus: computed(() => connectionStatus.value)
+    connectionStatus: computed(() => connectionStatus.value),
+    forceLogout,
   }
 
   console.log('PPTist Student View 已加载,可通过 window.PPTistStudent 访问功能')
@@ -2879,7 +2888,7 @@ const handleDisconnection = () => {
 /* 作业提交按钮样式 */
 .homework-submit-btn {
   position: fixed;
-  bottom: 30px;
+  bottom: 60px;
   z-index: 100;
   background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
   color: white;
@@ -2939,7 +2948,7 @@ const handleDisconnection = () => {
 /* 刷新网页按钮样式 */
 .refresh-page-btn {
   position: fixed;
-  bottom: 30px;
+  bottom: 60px;
   z-index: 100;
   background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
   color: white;