登录验证

master
wuzuowei 6 months ago
parent 4fab779c6c
commit 3baa1b4d86

@ -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,

Loading…
Cancel
Save