|
@@ -42,7 +42,9 @@ export default {
|
|
|
if (valid) {
|
|
|
this.form.id = this.user.id;
|
|
|
let res = this.loginUpdate(this.form);
|
|
|
- console.log(res);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$router.push('/login');
|
|
|
+ }
|
|
|
} else {
|
|
|
console.log('error submit!!');
|
|
|
return false;
|