|
@@ -268,17 +268,17 @@ export default {
|
|
|
if(redirectUrl){
|
|
|
redirectUrl = JSON.parse(redirectUrl)
|
|
|
localStorage.removeItem('redirectUrl')
|
|
|
- if(redirectUrl.userName && redirectUrl.userName != this.ruleForm.username){
|
|
|
- this.$router.push({
|
|
|
- path: '/home'
|
|
|
- })
|
|
|
- }else{
|
|
|
+ // if(redirectUrl.userName && redirectUrl.userName != this.ruleForm.username){
|
|
|
+ // this.$router.push({
|
|
|
+ // path: '/home'
|
|
|
+ // })
|
|
|
+ // }else{
|
|
|
this.$router.replace({
|
|
|
path:redirectUrl.path!='/login'?redirectUrl.path:'/home',
|
|
|
query:redirectUrl.query,
|
|
|
params:redirectUrl.params
|
|
|
})
|
|
|
- }
|
|
|
+ // }
|
|
|
}else{
|
|
|
this.$router.push({
|
|
|
path: '/home'
|