lrf402788946 hace 4 años
padre
commit
692d608621
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/views/index.vue

+ 2 - 1
src/views/index.vue

@@ -74,7 +74,8 @@ export default {
     ...mapState(['user']),
   },
   created() {
-    if (!user && this.token) this.$router.push({ path: '/login', query: { token: this.token } });
+    //兼容二维码地址问题
+    if ((!this, user && this.token)) this.$router.push({ path: '/login', query: { token: this.token } });
   },
   mounted() {
     this.title = this.$route.meta.title;