@@ -28,7 +28,13 @@ export default defineComponent({
if (/(192|localhost)/.test(location.origin)) {
return;
}
- window.location.href = `${location.origin}/classroom`;
+ // 判断是否在应用中
+ window.parent.postMessage(
+ {
+ api: "onLogin",
+ },
+ "*"
+ );