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'
+                          },
+                          '*'
+                        );
+                      }
                     }
                   }
                 }}>