diff --git a/imt-ui/src/views/login.vue b/imt-ui/src/views/login.vue index e65c809..9ad9293 100644 --- a/imt-ui/src/views/login.vue +++ b/imt-ui/src/views/login.vue @@ -216,6 +216,7 @@ import { import Verify from "@/components/Verifition/Verify"; import { resetUserPwd } from "@/api/system/user"; +import { getUserProfile } from "@/api/system/user"; export default { name: "Login", @@ -361,7 +362,15 @@ export default { this.loginForm ) .then(() => { - this.$router.push({ path: this.redirect || "/" }).catch(() => {}); + + getUserProfile().then(res=>{ + if (res.data.tenantId == "1"){ + this.$router.push({ path: this.redirect || "/" }).catch(()=>{}); + }else { + this.$router.push("/equip/equipdashboard").catch(()=>{}); + } + }) + // this.$router.push({ path: this.redirect || "/" }).catch(() => {}); }) .catch(() => { this.loading = false;