浏览代码

Update index.tsx

lex 1 年之前
父节点
当前提交
8a8a67086d
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      src/views/attend-class/index.tsx

+ 9 - 0
src/views/attend-class/index.tsx

@@ -1985,6 +1985,15 @@ export default defineComponent({
                       emit('close');
                     } else {
                       window.close();
+
+                      if (route.query.source === 'admin') {
+                        window.parent.postMessage(
+                          {
+                            api: 'iframe_exit'
+                          },
+                          '*'
+                        );
+                      }
                     }
                   }
                 }}>