|
|
|
@ -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';
|
|
|
|
|
window.location.href = 'https://metal.dayesteel.com.cn';
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// if (host.indexOf("localhost") !== -1) {
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
return {
|
|
|
|
|
userRoutes: MicroApps.runtimes.router.routeExtends,
|
|
|
|
|
userInfo: userData,
|
|
|
|
|