this.postRequest is not a function appears in vue
Missing import in main.js
Add the following code to main.js
import {postRequest} from "./utils/api";
Vue.prototype.postRequest = postRequest;