zhulizhen1111 преди 5 години
родител
ревизия
f200760db0
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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')