Explorar o código

登录跳转到仓库

lichao %!s(int64=3) %!d(string=hai) anos
pai
achega
e8bbbdabce
Modificáronse 1 ficheiros con 6 adicións e 5 borrados
  1. 6 5
      src/views/login/index.vue

+ 6 - 5
src/views/login/index.vue

@@ -167,11 +167,12 @@ export default {
               }).then(response => {
                 console.log(response)
                 Cookies.set("phone", encrypt(response.data.data.phonenumber), { expires: 30 })
-                if (this.fromPath === '/stock') {
-                  this.$router.push({ path: this.redirect || '/stock' });
-                } else {
-                  this.$router.push({ path: this.redirect || '/' });
-                }
+                // if (this.fromPath === '/stock') {
+                //   this.$router.push({ path: this.redirect || '/stock' });
+                // } else {
+                //   this.$router.push({ path: this.redirect || '/' });
+                // }
+                this.$router.push({ path: this.redirect || '/stock' });
                 this.loading = false;
               })
             }