|
@@ -25,15 +25,16 @@ export default defineComponent({
|
|
|
if (browserInfo.isApp) {
|
|
|
postMessage({ api: "login" });
|
|
|
} else {
|
|
|
- window.location.href = `${
|
|
|
- /(192|localhost)/.test(location.origin) ? "https://test.lexiaoya.cn" : location.origin
|
|
|
- }/classroom`;
|
|
|
+ if (/(192|localhost)/.test(location.origin)) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ window.location.href = `${location.origin}/classroom`;
|
|
|
}
|
|
|
return;
|
|
|
}
|
|
|
const student = res?.data || {};
|
|
|
setUserInfo(student);
|
|
|
- storeData.platformType = student.clientType === 'STUDENT' ? 'STUDENT' : ''
|
|
|
+ storeData.platformType = student.clientType === "STUDENT" ? "STUDENT" : "";
|
|
|
} catch (error) {
|
|
|
storeData.status = "error";
|
|
|
api_cloudLoading();
|