大屏页跳转

This commit is contained in:
liuyusheng 2024-10-15 10:25:55 +08:00
parent 4ef0fd0498
commit f5271e281d

View File

@ -216,6 +216,7 @@ import {
import Verify from "@/components/Verifition/Verify"; import Verify from "@/components/Verifition/Verify";
import { resetUserPwd } from "@/api/system/user"; import { resetUserPwd } from "@/api/system/user";
import { getUserProfile } from "@/api/system/user";
export default { export default {
name: "Login", name: "Login",
@ -361,7 +362,15 @@ export default {
this.loginForm this.loginForm
) )
.then(() => { .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(() => { .catch(() => {
this.loading = false; this.loading = false;