mirror of
https://github.com/jellyfin/jellyfin-vue.git
synced 2025-03-03 11:17:22 +00:00
fix(_itemid view): fix typescript errors
This commit is contained in:
parent
a0b8ad5147
commit
e48b33f0a3
@ -16,25 +16,28 @@
|
||||
|
||||
<script lang="ts">
|
||||
import Vue from 'vue';
|
||||
import { BaseItemDto } from '~/api';
|
||||
import imageHelper from '~/mixins/imageHelper';
|
||||
|
||||
export default Vue.extend({
|
||||
mixins: [imageHelper],
|
||||
data() {
|
||||
return {
|
||||
item: {}
|
||||
item: {} as BaseItemDto
|
||||
};
|
||||
},
|
||||
|
||||
async beforeMount() {
|
||||
const Item = await this.$itemsApi.getItems({
|
||||
uId: this.$auth.user.Id,
|
||||
userId: this.$auth.user.Id,
|
||||
ids: this.$route.params.itemId,
|
||||
fields: 'Overview'
|
||||
});
|
||||
const Item = (
|
||||
await this.$itemsApi.getItems({
|
||||
uId: this.$auth.user.Id,
|
||||
userId: this.$auth.user.Id,
|
||||
ids: this.$route.params.itemId,
|
||||
fields: 'Overview'
|
||||
})
|
||||
).data.Items as BaseItemDto[];
|
||||
|
||||
this.item = Item.data.Items[0];
|
||||
this.item = Item[0];
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user