大屏页跳转
This commit is contained in:
parent
4ef0fd0498
commit
f5271e281d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user