methods: {
signin() {
// this.$root.$emit('loading', true);
axios.all([
axios.post('auth/signin', {
user: {
email: this.email,
password: this.password,
}
}),
axios.get("captcha/check", {
captcha: this.captcha
})
]).then(res => {
console.log(res.data.user);
if (res.data.success === true) {
this.$root.$emit('loading', true);
return this.$store.dispatch('user/auth', res.data);