|
@@ -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;
|
|
|
})
|
|
|
}
|