Level 58
The error is caused by a missing semicolon at the end of the submit method. To fix it, add a semicolon at the end of the method like this:
submit(isSubmit) {
var vm = this;
vm.saveClicked = isSubmit;
this.$http.post(this.$member_whitelist_signup, form_data)
.then(function (response) {
console.log(vm.saveClicked);
if (response.data.success == true) {
if (vm.saveClicked == true) {
vm.$router.replace({ path: 'google.com' });
} else {
vm.$router.replace('yahoo.com');
}
} else {
if (response.data.data == null) {
vm.error_msg = response.data.message;
} else {
let first_error_key = Object.keys(response.data.data)[0];
vm.error_msg = response.data.data[first_error_key][0];
}
}
vm.devloader = false;
})
.catch(function (error) {
console.warn(error);
});
};