Level 58
The code provided in the question seems to be missing a closing brace for the submit method. This could be causing the semicolon error. Here's the corrected code:
submit(saveClicked) {
var self = this;
var form_data = new FormData(self.$refs.signupForm);
self.$http
.post(self.$member_whitelist_signup, form_data)
.then(function (response) {
if (response.data.success == true) {
if (saveClicked == true) {
self.$router.replace({ path: 'google.com' });
} else {
self.$router.replace('yahoo.com');
}
} else {
if (response.data.data == null) {
self.error_msg = response.data.message;
} else {
let first_error_key = Object.keys(response.data.data)[0];
self.error_msg = response.data.data[first_error_key][0];
}
}
self.devloader = false;
})
.catch(function (error) {
console.warn(error);
});
}, // <-- add this closing brace
Make sure to check the rest of your code for any other missing or misplaced braces or semicolons.