zhulizhen1111 5 rokov pred
rodič
commit
f200760db0
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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')