Chuoke ChungYoung since axios returns a promise object, return the axios.get() promise instead of passing the data to src variable, and then do your magic to the data outside.
here is an example
function getSrc() {
return axios.get('assist/img/src');
}
getSrc.then(function (response) {
return response.data; // now the data is accessable from here.
}).catch(function (response) {
console.log(response);
});