|
@@ -239,12 +239,13 @@ export default {
|
|
|
} else if (data.code == "1") {
|
|
|
// 认证通过
|
|
|
if (data.loginUser.sysUser.companyStatus == "00") {
|
|
|
- /* if(this.redirect == '/index'){
|
|
|
+ console.log(this.redirect,"AAAAA")
|
|
|
+ if(this.redirect == '/home'){
|
|
|
this.$router.push({ path: "/homePage"+this.redirect || "/" });
|
|
|
}else{
|
|
|
this.$router.push({ path: this.redirect || "/" });
|
|
|
- } */
|
|
|
- this.$router.push({ path: this.redirect || "/" });
|
|
|
+ }
|
|
|
+ // this.$router.push({ path: this.redirect || "/" });
|
|
|
// 认证未通过
|
|
|
} else {
|
|
|
console.log("未认证通过!")
|
|
@@ -314,7 +315,12 @@ export default {
|
|
|
if (response.code == "200") {
|
|
|
// 认证通过
|
|
|
if (response.data.sysUser.companyStatus == "00") {
|
|
|
- this.$router.push({ path: this.redirect || "/" });
|
|
|
+ if(this.redirect == '/home'){
|
|
|
+ this.$router.push({ path: "/homePage"+this.redirect || "/" });
|
|
|
+ }else{
|
|
|
+ this.$router.push({ path: this.redirect || "/" });
|
|
|
+ }
|
|
|
+ // this.$router.push({ path: this.redirect || "/" });
|
|
|
// 认证未通过
|
|
|
} else {
|
|
|
console.log("未认证通过!")
|