mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2024-10-07 03:23:37 +00:00
fix(imagehelper): fix typescipt errors in imageHelper
This commit is contained in:
parent
9fdf57a3ab
commit
a0b8ad5147
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user