@@ -107,28 +107,26 @@ class="primary-button justify-center"
107
107
userForm .append (' _method' , ' post' );
108
108
109
109
this .$axios .post (" {{ route (' admin.leads.create_by_ai' ) } }" , userForm, {
110
- headers: {
111
- ' Content-Type' : ' multipart/form-data' ,
112
- }
113
- })
114
- .then (response => {
115
- this .isLoading = false ;
110
+ headers: {
111
+ ' Content-Type' : ' multipart/form-data' ,
112
+ }
113
+ })
114
+ .then (response => {
115
+ this .isLoading = false ;
116
116
117
- this .$emitter .emit (' add-flash' , { type: ' success' , message: response .data .message });
117
+ this .$emitter .emit (' add-flash' , { type: ' success' , message: response .data .message });
118
118
119
- this .$refs .userUpdateAndCreateModal .close ();
119
+ this .$refs .userUpdateAndCreateModal .close ();
120
120
121
- window .location .reload ();
122
- })
123
- .catch (error => {
124
- this .isLoading = false ;
121
+ window .location .reload ();
122
+ })
123
+ .catch (error => {
124
+ this .isLoading = false ;
125
125
126
- this .$emitter .emit (' add-flash' , { type: ' error' , message: error .response .data .message });
126
+ this .$emitter .emit (' add-flash' , { type: ' error' , message: error .response .data .message });
127
127
128
- this .$refs .userUpdateAndCreateModal .close ();
129
- });
130
-
131
- console .log (userForm .get (' file' ));
128
+ this .$refs .userUpdateAndCreateModal .close ();
129
+ });
132
130
},
133
131
},
134
132
});
0 commit comments