0๐
โ
if(response.data.status === true){
resetFields();
that should probably be
if(response.data.status === true){
this.resetFields();
If you want to run the component method by that name.
Do you also have a function by that name defined outside of the component definition? or is this a typo in your example?
Source:stackexchange.com