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')