Looking to combine a Vue.js variable with an image URL.
This is what I computed:
imgPreUrl : function() {
if (androidBuild) return "android_asset/www/";
else return "";
}
For android builds:
<img src="/android_asset/www/img/logo.png">
Otherwise:
<img src="img/logo.png">
Any suggestions on how to concatenate the computed variable with the URL?
I attempted this:
<img src="{{imgPreUrl}}img/logo.png">