I'm not sure I understand what exactly you want. Axios.get() returns a promise, it is async ofcourse. That means your getSrc() is also async so it cannot just return a value when called. That value does not exist yet at the moment of calling it!
So, your code looks ok, your getSrc() will return a promise which you can manipulate later. Only the line ''// doing other something" seems wrong. That's going to execute in parallel with axios.get()! Depeding on what that other something is, you might want to put it in another .then().
Can you give us an example of what exactly you expect your getSrc() to return?