fix(imagehelper): fix typescipt errors in imageHelper

This commit is contained in:
Cameron 2020-09-06 11:52:21 +01:00
parent 9fdf57a3ab
commit a0b8ad5147

View File

@ -1,4 +1,11 @@
const imageHelper = { /**
* This server as a helper for geting image urls from the itemId
*
* @mixin
*/
import Vue from 'vue';
const imageHelper = Vue.extend({
methods: { methods: {
/** /**
* returns a URL with the link to the image * returns a URL with the link to the image
@ -10,6 +17,6 @@ const imageHelper = {
return `${this.$axios.defaults.baseURL}/Items/${id}/Images/${type}`; return `${this.$axios.defaults.baseURL}/Items/${id}/Images/${type}`;
} }
} }
}; });
export default imageHelper; export default imageHelper;