|
|
@ -239,13 +239,14 @@ export async function getInitialState() {
|
|
|
|
let params = await model.parameters()
|
|
|
|
let params = await model.parameters()
|
|
|
|
//console.log("params", params)
|
|
|
|
//console.log("params", params)
|
|
|
|
const host: string = window.location.hostname
|
|
|
|
const host: string = window.location.hostname
|
|
|
|
if (host.indexOf("localhost") !== -1) {
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
if (window.top === window.self) {
|
|
|
|
if (window.top === window.self) {
|
|
|
|
// window.location.href = 'https://metal.dayesteel.com.cn';
|
|
|
|
window.location.href = 'https://metal.dayesteel.com.cn';
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// if (host.indexOf("localhost") !== -1) {
|
|
|
|
|
|
|
|
// } else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// }
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
userRoutes: MicroApps.runtimes.router.routeExtends,
|
|
|
|
userRoutes: MicroApps.runtimes.router.routeExtends,
|
|
|
|
userInfo: userData,
|
|
|
|
userInfo: userData,
|
|
|
|