lsc 1 tuần trước cách đây
mục cha
commit
314b5d2e1b
1 tập tin đã thay đổi với 8 bổ sung2 xóa
  1. 8 2
      src/components/pptEasyClass/index.vue

+ 8 - 2
src/components/pptEasyClass/index.vue

@@ -209,13 +209,19 @@ export default {
       }
     },
     afterClass() {
-      this.$message.warning('下课功能暂未开放')
+      this.$confirm('确定下课吗,会让所有正在上课的学生全部退出登录?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        type: 'warning'
+      }).then(() => {
+        this.$refs.ppt.contentWindow.PPTistStudent.forceLogout();
+      }).catch(() => {});
     },
     onFreeBrowseChange(value) {
       this.freeBrowse = value;
       console.log('自由浏览模式已切换为1:', this.freeBrowse);
       this.$refs.ppt.contentWindow.PPTistStudent.toggleFollowMode()
-    }
+    },
   },
   destroyed() {
     if (this.courseDetail.userid == this.userid && this.tcid2 && this.org == '16ace517-b5c7-4168-a9bb-a9e0035df840') {