diff --git a/platform-code/src/app.ts b/platform-code/src/app.ts index 52882fc..39f1ce2 100644 --- a/platform-code/src/app.ts +++ b/platform-code/src/app.ts @@ -239,13 +239,14 @@ export async function getInitialState() { let params = await model.parameters() //console.log("params", params) const host: string = window.location.hostname - if (host.indexOf("localhost") !== -1) { - } else { - if (window.top === window.self) { - // window.location.href = 'https://metal.dayesteel.com.cn'; - return; - } + if (window.top === window.self) { + window.location.href = 'https://metal.dayesteel.com.cn'; + return; } + // if (host.indexOf("localhost") !== -1) { + // } else { + + // } return { userRoutes: MicroApps.runtimes.router.routeExtends, userInfo: userData,