add easy-mock

This commit is contained in:
Pan
2017-06-26 15:43:11 +08:00
parent c528bd8ad0
commit 472cbb6d65
11 changed files with 89 additions and 156 deletions

View File

@@ -76,12 +76,11 @@
this.$refs.loginForm.validate(valid => {
if (valid) {
this.loading = true;
this.$store.dispatch('LoginByEmail', this.loginForm).then(() => {
this.$store.dispatch('Login', this.loginForm).then(() => {
this.loading = false;
this.$router.push({ path: '/' });
// this.showDialog = true;
}).catch(err => {
this.$message.error(err);
}).catch(() => {
this.loading = false;
});
} else {