zhuliu há 1 ano atrás
pai
commit
0917e846b2
1 ficheiros alterados com 7 adições e 0 exclusões
  1. 7 0
      src/views/login/index.vue

+ 7 - 0
src/views/login/index.vue

@@ -268,6 +268,13 @@ export default {
           if(redirectUrl){
             redirectUrl = JSON.parse(redirectUrl)
             localStorage.removeItem('redirectUrl')
+            var arr = Object.keys(redirectUrl.query)
+            if(arr.length>0){
+              this.$router.push({
+                path: '/home'
+              })
+              return
+            }
             this.$router.push({
               path:redirectUrl.path,
               query:redirectUrl.query,