فهرست منبع

登录跳转到仓库

lichao 3 سال پیش
والد
کامیت
e8bbbdabce
1فایلهای تغییر یافته به همراه6 افزوده شده و 5 حذف شده
  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;
               })
             }