write an ajax request method, which is normal in the component, but it is not normal to extract it into the file of the public method, so report Cannot read property "$http" of undefined. What on earth is going on? I"ve been studying it for a day, but I can"t find a solution. Ask for help
.this is the public method (common.js):
(rank.vue):
: