Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dispatch return undefined #325

Open
justmealf opened this issue Nov 16, 2021 · 0 comments
Open

Dispatch return undefined #325

justmealf opened this issue Nov 16, 2021 · 0 comments

Comments

@justmealf
Copy link

Hi, i've try to get return value after dispatch login but always return undefined

handleLogin() { this.$refs.loginForm.validate(valid => { if (valid) { this.loading = true; csrf().then(() => { this.$store.dispatch('user/login', this.loginForm) .then((response) => { console.log(response); this.loading = false; }) .catch(() => { this.loading = false; }); }); } else { console.log('error submit!!'); return false; } }); },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant