zhulizhen1111 hace 5 años
padre
commit
f200760db0
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/views/auth/index.vue

+ 1 - 1
src/views/auth/index.vue

@@ -12,7 +12,7 @@ export default {
     created(){
         let lastRoute = this.$store.getters['lastRoute'].path.split('/')[1]
         console.log(lastRoute)
-        if (lastRoute != 'auth') {
+        if (lastRoute) {
             this.$router.replace(lastRoute)
         } else {
             this.$router.replace('/strategy')