|
@@ -48,7 +48,7 @@ export default {
|
|
|
// 个人用户
|
|
|
let res = await this.perLogin({ user: values });
|
|
|
if (this.$checkRes(res)) {
|
|
|
- this.$router.push({ path: '/account/index' });
|
|
|
+ this.$router.push({ path: this.$route.query.path });
|
|
|
} else {
|
|
|
this.$toast({ type: 'fail', message: res.errmsg });
|
|
|
}
|
|
@@ -57,7 +57,7 @@ export default {
|
|
|
values.institution_code = values.phone;
|
|
|
let res = await this.orgLogin({ user: values });
|
|
|
if (this.$checkRes(res)) {
|
|
|
- this.$router.push({ path: '/account/index' });
|
|
|
+ this.$router.push({ path: this.$route.query.path });
|
|
|
} else {
|
|
|
this.$toast({ type: 'fail', message: res.errmsg });
|
|
|
}
|