From 3baa1b4d861f2fa908c41ecfd6f60dc407c6d248 Mon Sep 17 00:00:00 2001 From: wuzuowei Date: Wed, 15 May 2024 19:16:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=AA=8C=E8=AF=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform-code/src/app.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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,