Fix loading of model library in non-electron env (#1521)

This commit is contained in:
Chenlei Hu
2024-11-12 22:38:29 -05:00
committed by GitHub
parent 96fda64b70
commit 3117d0fdc1
3 changed files with 41 additions and 36 deletions

View File

@@ -0,0 +1,20 @@
<template>
<div class="mx-6 mb-4" v-if="downloads.length > 0">
<div class="text-lg my-4">
{{ $t('electronFileDownload.inProgress') }}
</div>
<template v-for="download in downloads" :key="download.url">
<DownloadItem :download="download" />
</template>
</div>
</template>
<script setup lang="ts">
import DownloadItem from './DownloadItem.vue'
import { useElectronDownloadStore } from '@/stores/electronDownloadStore'
import { storeToRefs } from 'pinia'
const electronDownloadStore = useElectronDownloadStore()
const { downloads } = storeToRefs(electronDownloadStore)
</script>